Skip to content

sniper365/react-typescript-express-tempate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypeScript + React + Express Template

At a glance.

$ npm run init	// install packages global and modules both.
$ npm run build	// build webpack and tsc compile.
$ npm run dev	// launch app.

1. Setting

$ npm run init

It will install PM2, Webpack, TypeScript in global. Then install modules depencencies and devDependencies both.

2. Build

$ npm run build

Webpack build and typescript compile.

See webpack.config.js to change webpack configuration.

See tsconfig.json to change typescript compile options.

3. Launch

$ npm run dev

Launch application via pm2. See pm2.config.js to change pm2 options.

4. Directories.

  • /bin

Auto generate. Complied js files for server. Sources are placed in /src/server.

  • /public

Resources for web services.

  • /public/js

Auto generate. Compiled js files for react. Sources are placeed in /src/tsx/view.

  • /public/libs

React js files or some js sources what will not compiled.