Skip to content

TypeScript API Template with linter, formatter, testing and docker configured.

License

Notifications You must be signed in to change notification settings

rfdez/typescript-api-template

Repository files navigation

[WIP] Typescript API Template

In this repository you will find a template for creating a Typescript backend project. It includes the entrypoint of the application, the testing framework, linter and docker already configured.

📄 Features

🚀 Getting Started

# Install dependencies
pnpm install

# Run the application in development mode
pnpm run dev

# Build the application
pnpm run build

# Run the application in production mode
pnpm start

🐳 Docker

# Build the image
docker build -t <owner>/typescript-api-template:<tag> .

# Run the container
docker run --rm -p 8080:8080 <owner>/typescript-api-template:<tag>

🧪 Testing

pnpm test

💅 Linting

# Run the linter
pnpm run lint

# Fix linting errors
pnpm run lint:fix