Rentnesia, a modern way to rent and store things online in your neighborhood
- Nodejs Server Runtime Environment
- Expressjs Node.js Framework
- Nodemailer Node.js Email Delivery Service
- Sequalizejs ORM That Talks to Database
- MySQL SQL Database Management System
- AWS Amazon Web Services
- Heroku Backend Deployment System
- JWT Securely Transmitting Information
- bcrypt Password Hashing Function
Install mysql
database management system
- Run:
npm install
oryarn install
to install the dependencies - Create database
- Edit .env
- Run:
npm migrate
oryarn migrate
to create the tables into the database
Run: npm run dev
or yarn dev
to run server
Install: POSTMAN
or INSOMNIA
to test API
Run: npm run start
or yarn start
to run server
Authorization: Bearer jwt.token.here
Root URL: http://localhost:8000
Endpoint | HTTP | Description |
---|---|---|
/items |
GET | Get all items |
/items/:id |
GET | Get item by id |
/items/search?q= |
GET | Search item data by keyword |
/items |
POST | Insert a new item |
/items/:id |
DEL | Delete item by id |
/items/:id |
PUT | Update item by id |
Endpoint | HTTP | Description |
---|---|---|
/requests/ |
GET | Get all requests |
/requests/:id |
GET | Get one request by id |
/requests/:id |
POST | Create a new pick-up request by id |
/requests/:id |
DELETE | Delete request by id |
Endpoint | HTTP | Description |
---|---|---|
/payments/ |
GET | Get all payments |
/payments/:id |
GET | Get one payment by id |
Endpoint | HTTP | Description |
---|---|---|
/requests/ |
GET | Get all requests |
/requests/:id |
GET | Get one request by id |
/requests/:id |
POST | Create a new pick-up request by id |
/requests/:id |
DELETE | Delete request by id |
Endpoint | HTTP | Description |
---|---|---|
/users/ |
GET | Get all users |
/users/:id |
GET | Get one user by id |
/users/register |
POST | Create sign up form by email validation |
/users/forgot_password |
POST | Forgot password |
/users/login |
POST | Create login user |
/users/:id |
PUT | Update user profile |