/promote

Primary LanguageTypeScript

Promote

This app connects to Azure DevOps to pull information about work items and releases. Find out more about the dev stack, see Jinaga, TypeScript, Webpack, and React.

Installing

Once you have the code, run:

npm install

Database Setup

Jinaga saves its facts in PostgreSQL. Create a PostgreSQL database, set up the dev user, and then run the setup script.

To create the datbase run:

psql -h localhost -U postgres postgres

And then enter:

CREATE DATABASE promote;

And then, create the user. This is run once per server:

CREATE USER dev WITH
  LOGIN
  ENCRYPTED PASSWORD 'devpassword'
  NOSUPERUSER
  INHERIT
  NOCREATEDB
  NOCREATEROLE
  NOREPLICATION
  VALID UNTIL 'infinity';

Quit that session with \q (or Ctrl+D), and then run the setup script. The setup script is located in node_modules/jinaga/setup.sql. You can run it from the command line like this:

psql -h localhost -f node_modules/jinaga/setup.sql -U postgres promote

For complete instructions, see Jinaga PostgreSQL Setup.

Building

To build:

npm run build

This creates a dist folder with the server-side code in server.js, and the client-side code in scripts/index-xxxxx.js. It also creates an HTML file in views/index.html with a script tag that loads the client-side code.

Running

To run:

npm start

Developing

After the first build, you will probably want to run in development mode:

npm run dev

This will watch the source code for changes and rebuild as necessary. It will restart the server to load those changes.

Build something incredible!