Project created to study the fundamentals of a online bookstore API created with Node.js and Express framework.
- Route -> Controller -> Service -> Repository Architecture
- Basic Authentication & Authorization
- Book Sale
- Book CRUD
- Book Author CRUD
- Customer CRUD
- Sales Report
- PostgreSQL SQL database with Sequelize ORM
- MongoDB NoSQL database with Mongoose ODM
- Automated Tests with Jest
Clone the project repository:
$ git clone github.com/lucianoayres/online-bookstore-api.git
Install project dependencies:
$ npm install
Set the enviroment variables in '.env.sample' and rename it to '.env'.
Start the server:
$ npm start