The simple boilerplate for creating up a quick Express server with TypeScript.
# clone the repo (replace `my-app` with the name of your application)
git clone https://github.com/garyhtou/express-typescript-simple-boilerplate my-app
# enter the directory
cd my-app
# install dependencies
yarn
# run the server
yarn dev
# Open https://localhost:3000 in your browser
# the server will refresh on any saved changesYou will probably also want to customize the package.json to reflect
information about your application.
To start setting up your routes, edit src/router.ts.
- Express.js server
- Typescript language
- CORS (Cross-Origin Resource Sharing) and CROP (Cross-Origin Resource Policy) enabled by default
- Uses Helpers to simplify and DRY code
- Hot reloading development server using
ts-node-dev - Tabs over spaces... don't fight me! (@garyhtou/prettier-config)
- Loads environment variables from
.envfiles - Handles and logs unexpected server errors by returning a 500 JSON response
Express Typescript Simple Boilerplate was created by Gary Tou.