Rentnesia, a web app that can make users store, borrow and rent things online in your neighborhood
- Arsyad Sukma Ramadhan Team Leader as FullStack Developer
- Rina Hafizhah Utami as Frontend Developer
- Furqan Maudhudy as Backend Developer
- Nodejs Server Runtime Environment
- Expressjs Node.js Framework
- 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
Run with: /api/v1/
Root URL: http://localhost:8000
For Example: http://localhost:8000/api/v1/users
Endpoint | HTTP | Description | Body |
---|---|---|---|
/auth/login |
POST | Sign in users | username or email, password |
/auth/signup |
POST | Sign up users | username, email, password, role |
/auth/verify |
GET | Verify users | token |
Endpoint | HTTP | Description |
---|---|---|
/items |
POST | Create a new item |
/items |
GET | Get all items |
/items/:id |
GET | Get item by id |
/items/search?q= |
GET | Search item data by keyword |
/items/:id |
PUT | Update item by id |
/items/:id |
DEL | Delete item by id |
Endpoint | HTTP | Description |
---|---|---|
/users/ |
GET | Get all users |
/users/:id |
GET | Get one user by id |
/users/:id |
PUT | Update user profile |
/users/:id |
DELETE | Delete user profile by id |
Endpoint | HTTP | Description |
---|---|---|
/product_type/ |
POST | Create a new product type |
/product_type/ |
GET | Get all product types |
/product_type/:id |
DEL | Delete product type by id |
Endpoint | HTTP | Description |
---|---|---|
/category/ |
POST | Create a new category |
/category/ |
GET | Get all categories |
/category/:id |
DEL | Delete category by id |
Endpoint | HTTP | Description |
---|---|---|
/history/ |
POST | Create a new history |
/history/ |
GET | Get all histories |
/history/:id |
DEL | Delete history by id |