This API provides user registration, authentication, and personal todo management functionalities. Each user's todos are stored in their dedicated personal databases. Users can sign up, sign in, create todos, and fetch their todos from their personal databases.
-
Clone the repository and install dependencies:
-
Create a
.env
file with: JWT_SECRET=your_jwt_secret
-
Start the server:
-
Access the API at
http://localhost:3000
.
- POST
/signup
: Create a new user and their personal database.
- POST
/signin
: Authenticate user and connect to their personal database.
- POST
/dashboard/create-todo
: Create a new todo in the user's personal database.
- GET
/dashboard/todos
: Fetch todos from the user's personal database.
- Include JWT token as Bearer Token in
Authorization
header.
- API responds with appropriate error messages and status codes.
- Each user's personal todos are stored in their dedicated databases.
- User's personal database is created on signup and connected on signin.
- Express.js
- Sequelize
- Bcrypt
- JSON Web Token (JWT)
- Basic user authentication and personal todo management using Express and Sequelize.
- User-specific databases are created and connected for personal todo storage.
- Implement security measures in production.