thisisthechris / landscape-connect-server

Server for the landscape-connect app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Landscape Connect website and server

Build Status

There are three parts to the system:

  • Web server - this is a node.js web server which replies to requests and builds responses.
  • Front end build system. This builds simply the splash page showing off the features.
  • Admin console. Full administrative system as an SPA which uses the web server to function.

Requirements:

Server

The version of node is specified in .nvmrc as 14. This ensures long term compatability.

Front-end build

The build node version is currently also 14.

Linting

npx lint --fix

Testing

The tests are written in Mocha, and can be run with:

heroku local:run mocha -e .env.test

They're also run on Travis CI from GitHub actions.

Deployment

The deployment pipeline uses GitHub actions to run the Travis CI test runner. If that pases, it's deployed to a beta environment. This can then manually be deployed to production.

Environments:

Commands

  • heroku local:run npm run dev - Build and start
  • heroku local:run npm start - Start without building
  • npm run postinstall - Build

Changing to frontend

  • npm start
  • npm clean

Manually download JSON from server wget -U=LandscapeConnect http://landscape-connect-beta.herokuapp.com/api/questionnaires/6788B

About

Server for the landscape-connect app


Languages

Language:CSS 68.7%Language:JavaScript 20.7%Language:HTML 10.6%