This Project is an API that will handle the movies search request of the users. The record of the movies is stored in a database and the API will fetch the data from the database and return the result to the user. The API will also handle the request of the user to add a new movie to the database.
git clone https://github.com/Flanker-shyam/moviesAPI.git
npm install
- Create a
.env
file in the root directory of the project - Add the following to that
.env
file
PORT=3000
DB_URL=mongodb://localhost:27017/moviesData
DB_NAME=moviesData
DB_COLLECTION=moviesData
- Here in the closed quotations (""), you can provide any string of minimum length 32 characters
- This command will work in linux and macOS
export moviesApi_jwtPrivateKey= ""
- Need to have installed mongoDB in your system
sudo service mongod start
npm start
npm run dev
If you want to contribute to this project, follow these steps:
- Fork this repository.
- Clone your forked repository to your local system.
- Create a new branch with some meaningful name.(Important to make PR)
- Make necessary changes and commit those changes.
- Push changes to GitHub.
- Submit your changes by creating a pull request.