All Projects → dalenguyen → Rest Api Node Typescript

dalenguyen / Rest Api Node Typescript

Building RESTful Web APIs with Node.js, Express, MongoDB and TypeScript

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Rest Api Node Typescript

Blog Node
基于 node + express + mongodb 的博客网站后台
Stars: ✭ 364 (-2.41%)
Mutual labels:  mongodb, express
Vue Fullstack
vue fullstack template
Stars: ✭ 297 (-20.38%)
Mutual labels:  mongodb, express
Pro Mern Stack
Code Listing for the book Pro MERN Stack
Stars: ✭ 290 (-22.25%)
Mutual labels:  mongodb, express
Myblog
vue + node 实现的一个博客系统
Stars: ✭ 285 (-23.59%)
Mutual labels:  mongodb, express
Bulletproof Nodejs
Implementation of a bulletproof node.js API 🛡️
Stars: ✭ 4,369 (+1071.31%)
Mutual labels:  mongodb, express
Express React Fullstack
Simple, Useful Full Stack Express and React Application
Stars: ✭ 286 (-23.32%)
Mutual labels:  mongodb, express
Jianshu
仿简书nx+nodejs+nestjs6+express+mongodb+angular8+爬虫
Stars: ✭ 296 (-20.64%)
Mutual labels:  mongodb, express
Express Mongoose Es6 Rest Api
💥 A boilerplate application for building RESTful APIs Microservice in Node.js using express and mongoose in ES6 with code coverage and JsonWebToken Authentication
Stars: ✭ 2,811 (+653.62%)
Mutual labels:  mongodb, express
Nest Angular
NestJS, Angular 6, Server Side Rendering (Angular Universal), GraphQL, JWT (JSON Web Tokens) and Facebook/Twitter/Google Authentication, Mongoose, MongoDB, Webpack, TypeScript
Stars: ✭ 307 (-17.69%)
Mutual labels:  mongodb, express
Ktv Select music System
KTV点歌系统,含后台管理系统(完整版)
Stars: ✭ 305 (-18.23%)
Mutual labels:  mongodb, express
Nodejs Restful Api
How to create a RESTful CRUD API using Nodejs?
Stars: ✭ 285 (-23.59%)
Mutual labels:  mongodb, express
Vue Chess
Multiplayer online chess game use Vue , Nodejs, Webpack, Em6, Socket.io, Mongodb, Express
Stars: ✭ 350 (-6.17%)
Mutual labels:  mongodb, express
Doclever
做最好的接口管理平台
Stars: ✭ 2,849 (+663.81%)
Mutual labels:  mongodb, express
Express Graphql Mongodb Boilerplate
A boilerplate for Node.js apps / GraphQL-API / Authentication from scratch - express, graphql - (graphql compose), mongodb (mongoose).
Stars: ✭ 288 (-22.79%)
Mutual labels:  mongodb, express
N Blog
《一起学 Node.js》
Stars: ✭ 15,059 (+3937.27%)
Mutual labels:  mongodb, express
Instaclone
An instagram clone created with the MERN stack
Stars: ✭ 289 (-22.52%)
Mutual labels:  mongodb, express
Typescript Express Starter
🚀 TypeScript Express Starter
Stars: ✭ 238 (-36.19%)
Mutual labels:  mongodb, express
Hackathon Starter Kit
A Node-Typescript/Express Boilerplate with Authentication(Local, Github, Facebook, Twitter, Google, Dropbox, LinkedIn, Discord, Slack), Authorization, and CRUD functionality + PWA Support!
Stars: ✭ 242 (-35.12%)
Mutual labels:  mongodb, express
Securing Restful Apis With Jwt
How to secure a Nodejs RESTful CRUD API using JSON web tokens?
Stars: ✭ 301 (-19.3%)
Mutual labels:  mongodb, express
Nuxt Ssr
✨vue+nuxt+sass+node+express+MongoDB 实现的SSR项目。
Stars: ✭ 323 (-13.4%)
Mutual labels:  mongodb, express

Building RESTful Web APIs with Node.js, Express, MongoDB and TypeScript

This is a simple API that saves contact information of people.

There are two versions of this project.

  • V1.0.0: you can run the server directly after cloning this version. It will create a simple RESTful API over HTTP.
  • V2.0.0: this is a more secure and control API project. You need to read the post on how to secure RESTful API application first. After that, you can run the project.

Requirements

NodeJS

Install global TypeScript and TypeScript Node

npm install -g typescript ts-node

Getting Started

You should install MongoDB on your local machine, or use other services such as mLab or Compose

After that, you will have to replace the mongoURL with your MongoDB address in lib/app.ts

Clone this repository

git clone [email protected]:dalenguyen/rest-api-node-typescript.git .

Then install the dependencies

npm install

Start the server

Run in development mode

npm run dev

Run in production mode

npm run prod

Testing over HTTP (tag v1.0.0)

The default URL is: http://localhost:3000

  • GET all contacts
Send GET request to http://localhost:3000/contact/

Testing over HTTPs (tag v2.0.0)

The default URL is: https://localhost:3000

The key and cert in the config folder is for testing purpose only. You should generate your own.

Reference from Lynda.com

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].