This repo is for the assignment submission.
Book Directory - A basic express app to store books and their authors, and search among the added books.
-
Clone the repository
git clone https://github.com/WebClub-NITK/book-directory.git
-
Go to the root directory of the project
cd book-directory
-
Install all the required npm packages
npm i
-
Create a
.env
file like the.env.example
file in the root directory of the project. -
Get your details from mongoDB Atlas at put it in the
.env
file. Example:
MONGO_URL='mongodb+srv://<username>:<password>@<cluster-name>.jwixq.mongodb.net/?retryWrites=true&w=majority'
-
Run the server
node app.js