- Database Connection: Connect to MongoDB using
connect.ts
. - Environment Setup: Create
.env
follow.env.example
. - Routers: Use
auth.ts
andjobs.ts
for routes. - User Registration: Validate and hash user data, generate tokens.
- User Login: Authenticate users, generate tokens.
- Mongoose Errors: Handle validation, duplicate email, and cast errors.
- Security: Implement
helmet
, CORS,xss-clean
,rate limiting
. - Documentation: API endpoints documented with Swagger.
- Clone repository.
- Install dependencies:
npm install
. - Create
.env
in root, follow.env.example
. - Start server:
npm run dev
.
See Swagger documentation for API details here.