WeLoveMovies is an application that allows users to view movie information such as theaters, reviews, and reviewer information.
For the frontend, please visit this link.
To get started with this project, follow these steps:
- Clone this repository to your local machine using
git clone https://github.com/cannonspears/welovemovies-backend.git
. - Navigate to the project directory using
cd welovemovies-backend
. - Install the required dependencies using
npm install
. - Start the development server using
npm run start:dev
ornpm start
. - Create a
.env
file and setDATABASE_URL = ""
to your database url. - Run the knex migrations with
npm knex migrate:latest
- Seed your database with
npm run seed
This project includes a set of tests that can be run using the command line. To run the tests, use the command npm test
.
During the project, I gained several key takeaways, including:
- Creating and using common middleware packages
- Implementing error handlers for non-existent routes and incorrect requests
- Building an API following RESTful design principles
- Building and receiving requests through routes
This project was created by Cannon Spears in association with Thinkful.