Ever wanted to run your own novel writing contest, or just keep track of your novel writing progress?
This is the Rails API for Novel Tracker, a single page React app where users can create a novel project for a novel writing contest and view others' novel projects.
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
/novel-tracker-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='novel_tracker_db'
POSTGRES_TEST_DB='novel_tracker_test_db'
POSTGRES_DEVELOPMENT_DB='novel_tracker_development_db'
GMAIL_ACCOUNT='yournewgmailaccount@gmail.com'
GMAIL_PASSWORD='yourgmailapppassword'
FRONT_END_URL='http://localhost:3001'
RESET_PASSWORD='http://localhost:3001/reset_password'
- 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.