Skip to content

REST API (CRUD) with Express implemented with Typescript. Using MYSQL Data Base connector and Data Access Object as Design Pattern at Data Layer

Notifications You must be signed in to change notification settings

EfrainPerez23/Express-server-Typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express-server-Typescript

REST API (CRUD) with Express implemented with Typescript. Using MYSQL Data Base connector and Data Access Object as Design Pattern at Data Layer

Installation

First at all you have to install node.js in your Pc. Use this link node.js

You have to install typescript globally with this command line:

npm install -g typescript

Then at the root of the project, you have to install all dependecies of the package.json. Use this command line:

npm install 

When you have installed all dependecies, you have to compile the typrescript to Javascript ES5. To make this posible, You have to be at the same level of the tsconfig.json file, and run this command line:

tsc 

This command line will compile all the typescript file inside the src folder and it will compiled in a folder named 'dist'

Them you have to install nodemon dependecy library globally to run the project. Use this command line:

npm install -g nodemon

And finally to run this REST API, you have to run this command line:

npm run start

It will run on port 4000 and you can test it!

About

REST API (CRUD) with Express implemented with Typescript. Using MYSQL Data Base connector and Data Access Object as Design Pattern at Data Layer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published