Invent is a React inventory app.
https://github.com/ismaelpaul/be-invent.git
cd be-invent
npm install
MONGO_URI=<URI used to connect to MongoDB database>
JWT_SECRET=<Your secret key>
EMAIL_HOST=<The email provider>
EMAIL_USER=<The email used to receive messages from the app>
EMAIL_PASS=<The email password>
CLIENT_URL=<Address of the client, e.g. http://localhost:3000/>
CLOUDINARY_URL=<Cloudinary API base URL>
npm start
Description | Method | URL |
---|---|---|
Register | POST | /api/user/register |
Login | POST | /api/user/login |
Logout | GET | /api/user/logout |
Get profile | GET | /api/user/profile |
Login status | GET | /api/user/loggedin |
Update profile | PATCH | /api/user/update-profile |
Update password | PATCH | /api/user/update-password |
Forgot password | POST | /api/user/forgot-password |
Reset password | PUT | /api/user/reset-password/:resetToken |
Description | Method | URL |
---|---|---|
Add item | POST | /api/products |
Get all items | GET | /api/products |
Get single item | GET | /api/products/:id |
Delete item | DELETE | /api/products/:id |
Update item | PATCH | /api/products/:id |
Description | Method | URL |
---|---|---|
Send contact message | POST | /api/contact |