Wanatchapong / fastify-typescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fastify TypeScript

๐ŸŽ‰ Quick Start

  1. Create .env file at root directory of project
  2. Copy all environments variables from .env.example into .env
  3. Install dependencies run: npm install
  4. Run development: npm run dev

๐Ÿณ Run on Docker

  1. After created .env and installed dependencies same above
  2. Compile sources run: npm build
  3. Build docker image run: docker build --tag image-name .
  4. Run docker container in detached mode run: docker run -d -p 8000:8000 image-name

๐Ÿ“Œ Dependencies

  • Fastify: Fast and low overhead web framework, for Node.js
  • TypeScript: Static type definitions for JavaScript
  • Nodemon: Helps develop automatically restarting the node application
  • Pino: Very low overhead Node.js logger
  • Jest: Delightful JavaScript Testing
  • SuperTest: HTTP assertions made easy via superagent
  • Commitlint: Helps your team adhering to a commit convention
  • Conventional Commits: A specification for adding human and machine readable meaning to commit messages
  • Lint-Staged: Run linters against staged git files and don't let ๐Ÿ’ฉ slip into your code base!
  • Husky: Modern native git hooks, use it to lint your commit messages, run tests, lint code, etc... when you commit or push
  • Prettier: An opinionated code formatter
  • ESLint: Find and fix problems in your JavaScript code

About


Languages

Language:TypeScript 92.5%Language:Dockerfile 2.8%Language:JavaScript 2.7%Language:Shell 1.9%