Skip to content

Getting started

Yegor Sytnyk edited this page Oct 7, 2016 · 2 revisions

Getting started

Node version

You need to use Node 6.x, that is required for async/await functionality. If you need to manage different version of node use: nvm or nvm-windows.

NPM packages

Install typescript and typings globally

$ npm install -g typescript
$ npm install -g typings

Install packages and typings

npm install

That will install npm packages for server and client and install TS typings for the server

Build code

npm run build

That will compile server TS code and will create production-ready client side app

For development of client side run

npm watch

Database

Install recent version of Postgres (tested on 9.5.x)

Create new database for contoso.

Specify correct db settings in app configuration. See config page.

Run seed script, which should create initial database

cd server
npm run seed

Run

To start app

npm start

IDE

The project was developed with WebStorm IDE. Check out WebStorm Setup page.

Clone this wiki locally