Skip to content

b-odonoghue/react-typescript-express-starter-kit

 
 

Repository files navigation

Website Template

Goal: Have a deployable web server that serves up some basic content.

Development Environment Setup

IDE: https://code.visualstudio.com Repo: https://github.com/bob-bins/react-typescript-express-starter-kit

Windows users may use Cygwin to emulate a linux shell NPM / NodeJS needs to be installed

To Install

After cloning this repo locally, we have to install all the dependencies listed in the package.json file. This can be done with a single command:

npm install

Compiling with Typescript & TSC

We are using tsc (typescript compiler) to watch our typescript files and recompile them to javascript files located in the "dist" folder whenever they change. The details of how the compiler is configured are located in the "tsconfig.json" file.

npm run tsc

How to run webpack (bundle up your front end javascript code)

npm run webpack

How to run the webserver

npm run webserver

NPM tips

To add a new dependency, find it (usually on npmjs.org).

Then, for runtime dependencies:

npm install [dependencyName] --save

For development time dependencies (not needed at runtime):

npm install [dependencyName] --save-dev

If you forget the scripts you can run with npm, just use:

npm run

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 70.4%
  • Scala 26.6%
  • JavaScript 1.8%
  • Other 1.2%