This project implements a Clean Architecture design using TypeScript. The system manages user authentication, including registration and login functionalities.
- TypeScript
- Node.js
- Express
- Prisma
- JWT (JSON Web Token)
Follow these steps to set up the project on your local machine:
- Clone the repository:
git clone https://github.com/yourusername/clean-architecture-project.git cd clean-architecture-project
- Install dependencies:
npm install
- Set up environment variables:
Create a .env file in the root directory and add the following:
PORT=3000 DATABASE_URL=your_database_url JWT_SECRET=your_jwt_secret
- Run Prisma migrations:
npx prisma migrate dev
- Express Server:
npm run dev
Endpoint | Description | Method | Body |
---|---|---|---|
/api/register | Register User | POST | { name, email, password } |
/api/login | Login User | POST | { email, password } |