This project utilizes the Google Books API and provides books for users. This project features a modern design and easy navigation for users to interact with. We also integrated a database which allows for user authentication.
Node.js
Docker
MongoDB
"axios": "^1.6.8",
"bcrypt": "^5.0.1",
"cookie-parser": "^1.4.4",
"cookie-session": "^1.4.0",
"cors": "^2.8.5",
"dotenv": "^8.2.0",
"ejs": "^2.6.2",
"express": "^4.19.2",
"express-validator": "^6.10.0",
"http-errors": "^1.7.3",
"mongoose": "^5.11.15",
"multer": "^1.4.5-lts.1",
"passport": "^0.4.1",
"passport-local": "^1.0.0",
"pino": "^6.11.2",
"pino-pretty": "^4.7.1"
npm install
To run this project, you will need to add the following environment variables to your .env file
API_KEY
https://developers.google.com/books
Parameter | Type | Description |
---|---|---|
API_KEY |
string |
Required. Your API key |
- Docker
- MongoDB
- MongoDB Compass
(default port 27017 is mapped to port 37017)
docker pull mongo
docker run --name mongodb -p 37017:27017 -d mongo
docker ps
docker start mongo
Clone the project
git clone https://github.com/ArnanK/HW_Project2_CSCI355.git
Go to the project directory
cd HW_Project2_CSCI355
Install dependencies
npm install
Start the server
npm run start