/node-js-typescript-mysql-rest-api

TypeScript mysql2 example - Node.js Typescript Express and MySQL example: CRUD Rest API

Primary LanguageTypeScript

Node.js Typescript Rest API with MySQL example

Building Node.js Typescript Express and MySQL: CRUD Rest API example.

Methods Urls Actions
GET api/tutorials get all Tutorials
GET api/tutorials/:id get Tutorial by id
POST api/tutorials add new Tutorial
PUT api/tutorials/:id update Tutorial by id
DELETE api/tutorials/:id remove Tutorial by id

For more detail, please visit:

Node.js Typescript with MySQL example

Express Typescript example

TypeScript ORM with MySQL example

Project setup

npm install

Run

npm run start

Front-end that works well with this Back-end

Axios Client

Angular 8 / Angular 10 / Angular 11 / Angular 12 / Angular 13 / Angular 14 / Angular 15 / Angular 16 Client

Vue 2 Client / Vue 3 Client

React Client

More Practice

Node.js Express File Upload Rest API example

Server side Pagination in Node.js with Sequelize and MySQL

Deploying/Hosting Node.js app on Heroku with MySQL database

Security:

Node.js Express: JWT example | Token Based Authentication & Authorization

Associations:

Sequelize Associations: One-to-Many Relationship example

Sequelize Associations: Many-to-Many Relationship example

Fullstack:

Vue.js + Node.js + Express + MySQL example

Vue.js + Node.js + Express + MongoDB example

Angular 8 + Node.js + Express + MySQL example

Angular 10 + Node.js + Express + MySQL example

Angular 11 + Node.js + Express + MySQL example

Angular 12 + Node.js + Express + MySQL example

Angular 13 + Node.js + Express + MySQL example

Angular 14 + Node.js + Express + MySQL example

Angular 15 + Node.js + Express + MySQL example

Angular 16 + Node.js + Express + MySQL example

React + Node.js + Express + MySQL example

Integration (run back-end & front-end on same server/port)

Integrate React with Node.js Restful Services

Integrate Angular with Node.js Restful Services

Integrate Vue with Node.js Restful Services