These are the steps for setting up your development environment for WebSiteOneBackendApi project. This covers the tools you need to have installed and any specific configuration(s).
We use git for version control and keep the project repository on GitHub. You'll need to be able to use both of those.
You'll do your development work on your own copy of the project.
-
On GitHub, fork AgileVentures/WebSiteOneBackendApi into your own GitHub area.
-
Clone your fork to your local development machine (or where-ever you are going to do your development coding). To clone the fork, run the following command on your local machine:
git clone https://github.com/<your-github-name>/WebsiteOneBackendApi
You should now have the entire project -- all of the directories and files -- on your local machine, and it should have a git
repository (.git
).
-
Clone your fork:
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
-
Add remote from original repository in your forked repository:
cd into/cloned/fork-repo git remote add upstream https://github.com/AgileVentures/WebsiteOne.git git fetch upstream
-
Updating your fork from original repo to keep up with WebsiteOneBackendApi:
git pull upstream develop
bundle install
The database used is postgreSQL. You need to have this installed and running on your local machine.
(The pg
gem accesses the postgreSQL database.) Here are instructions on installing postgreSQL.
Run the rake command to set up the database. Be sure to use bundle exec
so that the gems specific to this project (listed in the Gemfile) are used:
bundle exec rake db:setup
Now you're ready to run the tests:
bundle exec rake spec
Discuss any errors with the team on Slack, in a scrum, or in mob or pair programming.
bundle exec rails s
You can now see the system working on your local development environment by querying the GraphQL api
Be sure to read and understand how to contribute when you're ready to start developing and contributing.
We recommend and follow the Ruby Style Guide
Here are notes about comments and altering other's code.
[Note: This page originally at https://github.com/AgileVentures/WebsiteOne/wiki/Project-Setup-%28New-Users%29]