An open API service indexing awesome lists of open source software.

https://github.com/adityachandra1/backend-assign-pp

Author and Books API
https://github.com/adityachandra1/backend-assign-pp

express fakerjs jwt-authentication mongodb nodejs

Last synced: 3 months ago
JSON representation

Author and Books API

Awesome Lists containing this project

README

          

# Backend Assignment: Pet Perfect

## Server Architecture
![image](https://user-images.githubusercontent.com/74142348/201200667-b9d239c4-b3cc-45a0-81e2-c49753684de5.png)
[Link](https://www.figma.com/file/V6qLFgx7Se0nUywb6GNXhU/Server-Architecture?node-id=0%3A1)

## Postman Docs
https://documenter.getpostman.com/view/17495243/2s8YesqBkC

## Run the API
- Create a new cluster in MongoDB and paste its link the example_env file provided.
- Rename example_env to .env
- Now, run the api with the given commands
```
npm install
npm start
```

- 10 random authors and multiple book entries for each author will automatically be created whenever the server starts/restarts. (Using Faker.js)
- Default password for the randomly generated accounts is "password".