A BK techhouse challenge project
- Language: Node js(Javascript runtime environment)
- Framework: Express js
- DBMS: Postgresql
- ORM: Sequelize
To get a local copy of this project, Please follow these simple example steps.
- Node js Get it here
$ git clone https://github.com/benshidanny11/classifiedsapp-bk-tech-house.git
you@your-Pc-name:~$ cd <classifiedsapp-bk-tech-house>
Please remember to set environment variables using .env-example provided
Please visit this link to access live api server.
Below are the endpoints
Endpoint | Methods | Functionalities | Data |
---|---|---|---|
/user/signup | POST | Signpu user | name: String (Body data), email: String (Body data), Password: String (Body data) |
/user/login | POST | Login user | email: String (Body data), password: String (Body data) |
/product/createnew | POST | Create new product | name: String(Body data), description:String(Body data), image: String(Body data), price: Float(Body data), category: String(Body data), manufacture_date: String(Body data), token: String(Header data) |
/product/update/{id} | PUT | Update user product | id: String (Param), name: String(Body data), description:String(Body data), image: String(Body data), price: Float(Body data), category: String(Body data), manufacture_date: String(Body data), token: String(Header data) |
/product/deleteuserproduct/{id} | DETETE | Delete product | token: String(Header data), id: Number(Param data) |
product/getone/{id} | GET | Get one product | id: Number(Param data) |
product/getuserproducts | GET | Get all products associated with user | token: String(Header data) |
👤 Daniel Urimubenshi
- GitHub: @benshidanny11
- Twitter: @DBenshi
- LinkedIn: Daniel Urimubenshi
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.