Skip to content

仓库 files navigation

TypeScript API

This repository was created in an effort to learn how to create REST-API's with TypeScript. 已关注 best practices in production environments I not only set up the repository for my own personal use, but put much effort into understanding GitHub 操作 Workflows, including many collaborative tools like ESLint and Prettier so development in a team is not only possible but functional.

It was quite a wonderful teaching exercise.

Technologies & Tools Used

  • Node.js: Basis of this project to leverage the benefits of server-side JavaScript.
  • TypeScript: Improved code quality and static typing.
  • Express.js: To create a robust and scalable REST-API.
  • ESLint: Static code analysis to identify and fix problematic patterns as they happen.
  • Prettier: Code formatting to ensure consistency and aesthetically pleasing code.
  • CORS: Handling Cross-Origin Resource Sharing to allow controlled access to resources from different domains.
  • Vitest: Testing library for Test Driven Development approach.
  • Workflows & Scripts: Environment specific scripts handle not only linting and formatting, but also the test environment before commiting. Additional safeguards are used using GitHub 操作.

Project Setup

关注 the steps below to set up the project on your local system:

  1. Clone the GitHub 仓库: git clone git@github.com:reneSpeaks/TypeScript-API.git
  2. Install dependencies npm i
  3. Copy and fill out .env.Example to create .env.development & .env.production
  4. Start development Server: npm run dev
  5. Open URL: http://localhost:3001