The Member Portal is an open source community software project built by and for the Reno Collective. This application will provide the members of the Reno Collective with a way to better network and share ideas with one another.
These instructions will help you get the project up and running on your local machine.
Make sure that you already have Xcode on your machine before running the following commands. To install xcode run:
xcode-select --installAn install window will appear. Click install to begin installing Xcode.
If rvm isn't already installed on your machine, install rvm After installing rvm, you may need to close the terminal and open it back up in order to successfully run an rvm.
To update or install Ruby 2.3.5, run:
rvm install 2.3.5To use Ruby V.2.3.5, run:
rvm use 2.3.5To install Rails V5.1.4, run:
gem install rails -v 5.1.4To install PostgreSQL, make sure your brew is up to date. If you don't yet have homebrew installed, install homebrew.
Run the following command lines:
brew doctorbrew updateIf you don't have PostgreSQL installed, run:
brew install postgresqlThe postgresql server may need to be started if it isn't already running. To start the server, run:
pg_ctl -D /usr/local/var/postgres start && brew services start postgresqlClone this git repository by running:
git clone https://github.com/renocollective/member-portalNow you should have a local copy of the member-portal project.
Once cloning the member portal, switch to the project directory:
cd member-portalBefore you can successfully run the project, you need to install all the dependencies for the Rail application by running:
bundle installTo successfully run this command, you will need to have bundler installed. To install bundler:
gem install bundlerFor the application to successfully run, you will need to create a .env.local file. Copy and paste the text in the .env file into the new .env.local file or just run:
bundle exec rake setupenvNext, run:
bundle exec rails db:setup
bundle exec rails db:migrateBefore we start the server, we will create our first admin user. This will ask you for information for your first user account that will have admin access. You can edit this user and grant other users admin privileges once the server has started.
bundle exec rake setupadminTo start and run the rails application:
rails sNow you should be able to view the rails app at http://localhost:3000/
- To run rails in docker
docker-compose upordocker-compose up -dto not show console output.
Please see CONTRIBUTING.md for more information on how to contribute to the project.