Skip to content

trump-barometer/mgmt-ui-web-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mgmt-ui-web-app

Trump Barometer Web UI

First, create a .env like this in the root of the repo:

db_host=...
db_port=...
db_user=...
db_pw=...
db_name=...     --> trumpbarometer with current prod system
port=...        --> used for the backend, also needs to be known by frontend for SSR
hostname=...    --> different from the db_host to be able to go against prod for SSR via https
keypath=...     --> optional when port = 443/https!
certpath=...    --> optional when port = 443/https!

It will be used by both the frontend and backend

Build UI

# install dependencies
$ npm install

# serve with hot reload at localhost:3000
$ npm run dev

# build for production and launch server
$ npm run build
$ npm run start

# generate static project
$ npm run generate

For detailed explanation on how things work, check out Nuxt.js docs.

Build Backend

Then use the commands to run the application

# to make the frontend available via backend generate the ui first like described above!

# install dependencies
$ npm install

# serve with live reload on port 3000
$ npm run dev

# build for production and launch server
$ npm run build
$ npm run start

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •