Ever wanted a way for participants of your writing challenge to track each other's progress?
This is the Rails API for Writing Challenges App, a single page React app (in progress!) where users can create and join writing challenges and keep track of their projects with a word count tracker.
This API was built with PostgreSQL, so you will need to have it installed on your computer to create the databases needed to run it. I found this article particularly helpful in that regard.
- Fork the repository
- Clone the files to your computer
- Navigate to
/writing-challenges-api
in your terminal - Create a
.env
file, and include this in it:
POSTGRES_USER='your_postgres_username'
POSTGRES_PASSWORD='your_postgres_password'
POSTGRES_HOST='localhost'
POSTGRES_DB='writing_challenges_api_db'
POSTGRES_TEST_DB='writing_challenges_api_test_db'
POSTGRES_DEVELOPMENT_DB='writing_challenges_api_development_db'
- Run
bundle install
- Run
rails db:migrate
- Run
rails db:seed
. This step is very important as it loads badgetypes into the app! - Run
rails s
to start the server. Make sure to run the React app at the same time as well!
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.