๐ข A book directory application with mevn stack (mongo, express, vue, node)
Used Techs: Node Js, Express Js, MongoDb, Vue Js, Vuex, Vue-Router, Axios, SCSS
- Vue - as a Frontend Framework
- Vue-Router - for routing
- Vuex - for state management
- Axios - for make HTTP requests
- MongoDb and Mongoose - MongoDb as a Database and mongoose as a Object Data Modeling library for MongoDB and Node.js
- Node - runtime JavaScript
- Express - as a backend Framework
- JsonWebToken - for creating JSON-based access tokens
- bcryptjs - for hashing the user passwords
Method | Endpoint | Authentication | Description |
---|---|---|---|
POST | /api/auth/register |
Register | |
POST | /api/auth/login |
Login | |
GET | /api/books |
required | Return all books infos in DB |
POST | /api/books |
required | Add a book to the book directory in DB |
DELETE | /api/books/:id |
required | Delete book infos in DB |
PORT=5000
NODE_ENV=development
MONGO_URI= <YOUR_MONGO_URI>
JWT_SECRET_KEY= <YOUR_SECRET_KEY>
JWT_EXPIRE=30m
JWT_COOKIE=30
- Repo created by Ceren
- Email: [email protected]
Developed with โค๏ธ