- Open your terminal
- Clone the repo
git clone https://github.com/edwinhern/express-typescript-2024.git
- Navigate by using
cd express-typescript-2024
into the folder directory - Install project dependencies by running
npm ci
- Copy the .env.template file to a new file named .env
- You can use the following command:
cp .env.template .env
- Ensure that the .env file contains the required environment variables as defined in .env.template
Below are Scripts that can be ran and found in package.json file
- Development Mode:
npm run dev
- Build Project:
npm run build
- Production Mode:
npm run start
ornpm run docker:start
.
├── common
│ ├── middleware
│ │ ├── compressFilter.ts
│ │ ├── errorHandler.ts
│ │ ├── index.ts
│ │ ├── rateLimiter.ts
│ │ └── requestLogger.ts
│ ├── models
│ │ └── serviceResponse.ts
│ └── utils
│ ├── compressFilter.ts
│ ├── envConfig.ts
│ └── responseHandler.ts
├── index.ts
├── modules
│ ├── healthCheck
│ │ ├── healthCheckController.ts
│ │ ├── healthCheckRoutes.ts
│ │ └── tests
│ │ └── healthCheckRoutes.test.ts
│ └── user
│ ├── tests
│ │ └── userRoutes.test.ts
│ ├── userController.ts
│ ├── userModel.ts
│ ├── userRepository.ts
│ ├── userRoutes.ts
│ └── userService.ts
└── server.ts
10 directories, 19 files