All Projects → wantanabe → typescript-express-rest-api

wantanabe / typescript-express-rest-api

Licence: MIT license
This template will help you to build your own Node.js Express Mongodb API in TypeScript.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to typescript-express-rest-api

rest-api-node-typescript
This is a simple REST API with node and express with typescript
Stars: ✭ 154 (+266.67%)
Mutual labels:  restapi, joi-validation
bodymen
Body parser middleware for MongoDB, Express and Nodejs (MEN)
Stars: ✭ 49 (+16.67%)
Mutual labels:  mongoose
toi
A TypeScript validation library capable of inferring types
Stars: ✭ 25 (-40.48%)
Mutual labels:  joi-validation
Project09-C-Uber-Clone
WOOBER 🚓🌱 지도 컴포넌트를 활용한 Uber 서비스 클론
Stars: ✭ 18 (-57.14%)
Mutual labels:  mongoose
NodeScalableArchitecture
A Scalable Node Architecture/Server. This repository contains a complete implementation of writing scalable nodejs server/architecture on my medium blog.
Stars: ✭ 62 (+47.62%)
Mutual labels:  mongoose
Express-REST-API-Generator
Express REST API Generator is an Express Based API skeleton. A template for starting projects with express as an API. This project can be used for creating a RESTful API using Node JS, Express as the framework, Mongoose to interact with a MongoDB instance and Sequelize for support of SQL compatible databases. Mocha is also used for running unit …
Stars: ✭ 100 (+138.1%)
Mutual labels:  mongoose
mongoose-keywords
Mongoose plugin that generates a keywords path combining other paths values
Stars: ✭ 23 (-45.24%)
Mutual labels:  mongoose
Express-MongoDB-Authentication
A simple authentication app using Express & MongoDB
Stars: ✭ 15 (-64.29%)
Mutual labels:  mongoose
peerai-api
Peerism's Peer.ai API built with Truffle, Node.js, Express.js, Solidity, and Ethereum TestRPC
Stars: ✭ 18 (-57.14%)
Mutual labels:  mongoose
node-mongodb-graphql-starter
A boilerplate for Node.js, MongoDB & GraphQL applications.
Stars: ✭ 56 (+33.33%)
Mutual labels:  mongoose
nodejs-shopping-cart
NodeJS / Express / MongoDB - Shopping Cart (monolithic app with handlebars)
Stars: ✭ 42 (+0%)
Mutual labels:  mongoose
MERN-JWT-AND-ROLE-AUTH
Neccessary features needed for your mern Application are now available.
Stars: ✭ 30 (-28.57%)
Mutual labels:  mongoose
idpt
Internet-Delivered Psychological Therapy (IDPT) System.
Stars: ✭ 24 (-42.86%)
Mutual labels:  mongoose
mongoose-schema-reference-sample
Shows the usage of mongoose Schema referencing
Stars: ✭ 48 (+14.29%)
Mutual labels:  mongoose
monogram
Aspect-oriented layer on top of the MongoDB Node.js driver
Stars: ✭ 76 (+80.95%)
Mutual labels:  mongoose
Snippet2
A simple Code Snippet with user account and share feature
Stars: ✭ 20 (-52.38%)
Mutual labels:  mongoose
quickmongo
Quick mongodb wrapper for beginners that provides key-value based interface.
Stars: ✭ 73 (+73.81%)
Mutual labels:  mongoose
nodejs grpc
GRPC based API CRUD using Nodejs at both server and client side
Stars: ✭ 17 (-59.52%)
Mutual labels:  mongoose
Becoditive-API
The official API of beCoditive with many endpoints like memes, animals, image manipulation, url shortner, etc.
Stars: ✭ 14 (-66.67%)
Mutual labels:  mongoose
AmigoChat-Realtime-Chat-Application
AmigoChat is a responsive real-time chat application built on MERN Stack and Socket io.
Stars: ✭ 22 (-47.62%)
Mutual labels:  mongoose

Node.js Express API with TypeScript 3

Node.js Express API with TypeScript 3. Supports MongoDB

Description

This skeleton will help you to build your own Node.js Express Mongodb API using TypeScript 3.

Project Introduction

Features

Authentication:
  • jwt authentication
Session Storage:
  • MongoDB
Integration testing
  • mocha
  • chai
  • supertest

Requirements

  • node >= 10
  • npm >= 6
  • mongodb >= 3.0
  • typescript >= 3.0

Running the API

Development

To start the application in development mode, run:

npm install

Start the application in dev env:

npm run dev

Start the application in production env:

Install ts pm2 and typescript compiler:

npm install -g pm2
pm2 install typescript

example start with scale on 2 core:

pm2 start ./src/index.ts -i 2 --no-daemon

or

npm run build
pm2 start ./build/index.js

Express server listening on http://localhost:3000/, in development mode The developer mode will watch your changes then will transpile the TypeScript code and re-run the node application automatically.

Testing

To run integration tests:

npm test

Set up environment

In root folder you can find .env. You can use this config or change it for your purposes. If you want to add some new variables, you also need to add them to interface and config object (Look src/config/index.ts)

Swagger

npm install -g swagger-jsdoc
swagger-jsdoc -d swaggerDef.js -o swagger.json

Swagger documentation will be available on route:

http://localhost:3000/docs
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].