This project is a simple login API built with Bun.js and Drizzle ORM, following the domain model pattern. It allows users to register, log in, and perform basic user-related operations. This README provides an overview of the project, its features, and instructions for setup and usage.
- User registration with email and password.
- User login with password.
- Secure password hashing.
- Domain model pattern for organized code.
- Bun.js and Drizzle ORM for database interactions.
- RESTful API endpoints for user management.
Before you begin, ensure you have met the following requirements:
- Install docker (that's it)!
-
Clone the repository:
git clone https://github.com/yourusername/potential-train.git cd potential-train -
Run the container:
sudo docker compose up- POST /api/user: Register a new user.
- POST /api/login: Authenticate and log in a user.