This repository is for the Express TS 4th Workshop. It aims to establish a proper backend development environment using Express and TypeScript. The setup includes essential tools for code quality, formatting, and API documentation, providing a strong foundation for building reliable and scalable applications.
- Swagger - API documentation tool for clear and interactive documentation
- ESLint - Linter for identifying and fixing code errors and standardizing code style
- Prettier - Code formatter for consistent styling
- Husky - Git hooks for pre-commit checks, ensuring code quality before committing
- Morgan - HTTP request logger that provides insights into request details for easier debugging and monitoring
- Node.js: Version 20 or higher
Ensure you have Node.js installed on your machine. You can download it here.
To set up the project locally, follow these steps:
-
Clone the repository
git clone https://github.com/oat431/fourth_ts_class.git
-
Navigate to the project directory
cd fourth_ts_class
-
Install dependencies
npm install
Note: Ensure you have Node.js version 20 or above for compatibility with this project.
-
Create .env.dev add
PORT=8080
-
Run the development server
npm run dev
-
Access the API and Swagger documentation:
- Swagger: Go to
http://localhost:<port>/swagger
to view interactive API documentation (adjust<port>
as needed in your setup). - API DOCS: Go to
http://localhost:<port>/api-docs
to get openapi docs as a further usage (adjust<port>
as needed in your setup).
- Swagger: Go to
This setup ensures a well-documented and clean codebase, promoting best practices for backend development in TypeScript.
no license (yet)