Node.js server for the WaterTracker || GitHub
WaterTracker is a application that allows the user to monitor their daily water consumption.
POST /api/auth/register: Registration userPOST /api/auth/login: Login userPOST /api/auth/request-pass: Send password recovery requestPOST /api/auth/reset-pass: Change password after email requestPOST /api/auth/logout: Logout user
PATCH /api/user/avatar: Add/change user avatarGET /api/user/current: Get current user informationPATCH /api/user/edit: Change user informationDELETE /api/user/delete-account: Delete user account
PATCH /api/waterrate: Change user waterrate
POST /api/water: Add water valuePATCH /api/water/{id}: Update water valueDELETE /api/water/{id}: Delete water value
GET /api/today: Get today water values
GET /api/month: Get period water values
- User registration and loginization by using password or Google Auth
- Password recovery through email confirmation request
- User authorization and logout
- Editting user data (avatar, name, email, password)
- Deleting a user account and his water values
- Changing the calculation of the daily rate of water consumption
- Adding, update, delete a record of consumed water
- Calculation of the amount of water for the current day or the selected month
- Clone the repo:
git clone https://github.com/LIGHT131313/WaterTracker_backend.git - Install dependencies:
npm install - Start the server:
npm startornpm run start:dev
- Node.js
- Express.js
- MongoDB
- Mongoose
- JWT (JSON Web Tokens)
- Bcrypt
- Dotenv
- CORS
- Nodemon
- Axios
- Cloudinary
- Cross-env
- Joi
- Morgan
- Multer
- Nanoid
- Nodemailer
- Query-string
- Swagger-ui-express
