This is the backend for Deal-It. This serves as the API for the frontend to make requests.
Note: Run the PostgreSQL application before creating and migrating the database
In the terminal:
- Clone the repository by typing
git clone https://github.com/alexanderchao123/dealer-backend.git
cd
into the repository- Run:
bundle install
- Make sure PostgreSQL application is open
- Run:
rails db:create
to create the database our application will be using - Run:
rails db:migrate
to migrate our tables - Once the database is initialized, run:
rails server
to start the server - Once the backend is up and running, go to the frontend and follow the run instructions
- Create a user model and setup the association between the user and the decks, meaning the user will have many decks and a deck belongs to the user.
- Add JWT authentication, so the user will be able to log in.