Skip to content

csprance/express-typescript-rest-api

 
 

Repository files navigation

Express & TypeScript REST API Boilerplate

This is a straightforward boilerplate for building REST APIs with TypeScript and Express. It is based on the similarrlly named repository developit/express-es6-rest-api.git

Tip: If you are using Mongoose, you can automatically expose your Models as REST resources using restful-mongoose.

Getting Started

# clone it
git clone [email protected]:csprance/express-typescript-rest-api.git
cd express-typescript-rest-api

# Make it your own
rm -rf .git && git init && npm init

# Install dependencies
npm install

# Start development live-reload server
PORT=8080 npm run dev

# Start production server:
PORT=8080 npm start

Docker Support

cd express-typescript-rest-api

# Build your docker
docker build -t ts/api-service .
#            ^      ^           ^
#          tag  tag name      Dockerfile location

# run your docker
docker run -p 8080:8080 ts/api-service
#                 ^            ^
#          bind the port    container tag
#          to your host
#          machine port   

License

MIT

About

🔋 Starter project for a TypeScript RESTful Express API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 91.5%
  • Dockerfile 8.5%