Skip to content

A basic starter for an express.js API with Typescript (Bun) and Prisma.

License

Notifications You must be signed in to change notification settings

bassamanator/bun-express-prisma-template

Repository files navigation

bun-express-prisma-template

How to use this template

  1. You need bun package manager installed on your system https://bun.sh/.
  2. Some of the scripts make use of Node Version Manager (nvm) https://github.com/nvm-sh/nvm. If you don't want to install it, just search for nvm in this repo and adjust.

Packages

API Server packages

  • morgan
    • HTTP request logger middleware for node.js
  • helmet
    • Helmet helps you secure your Express apps by setting various HTTP headers. It's not a silver bullet, but it can help!
  • dotenv
    • Dotenv is a zero-dependency module that loads environment variables from a .env file into process.env
  • cors
    • CORS is a node.js package for providing a Connect/Express middleware that can be used to enable CORS with various options.

Development packages

  • typescript
    • TypeScript is a language for application-scale JavaScript.
  • eslint
    • ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code.
  • typescript-eslint
  • jest
    • Jest is a delightful JavaScript Testing Framework with a focus on simplicity.
  • supertest
    • HTTP assertions made easy via superagent.
  • prettier
  • husky
    • Husky improves your commits and more 🐶 woof!
    • You can use it to lint your commit messages, run tests, lint code, etc... when you commit or push.
  • lint-staged
    • Run linters against staged git files and don't let 💩 slip into your code base!

Forked from and inspired by

https://github.com/w3cj/express-api-starter.git

About

A basic starter for an express.js API with Typescript (Bun) and Prisma.

Topics

Resources

License

Stars

Watchers

Forks