Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Latest commit

 

History

History
 
 

client-admin

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Build Status Code Climate Test Coverage

Polis Admin Console

The below instructions are no longer officially supported; if you'd like to use them as a reference, we suggest you check out the official Dockerfile to understand the latest build process and specific package versions.


Configuration

Install the NVM following the instructions: NVM Installation Guide.

Them run the commands below to install the correct Node.JS version and the application dependencies.

nvm install 8.17.0
npm install

Common Problems

If you having troubles with npm dependencies try run the commands below:

npm cache clear
npm install

Running Application

nvm use 6.2.0
npm start

Running Tests

We aspire to use the Jest Testing Framework. We welcome contributors to help us write tests!

# Doesn't work right now. Will need to reinstall jest.
npm test

Building and Deploying for Production

To build static assets for a production deployment, run

gulp dist

As a convenience, the deploy_TO_PRODUCTION script is provided for deploying to AWS S3 or via SCP to a static file server. For S3 deployment, place your AWS credentials in a JSON file at .polis_s3_creds_client.json that looks like this:

{"key": "XXXXXXX", "secret": "YYYYYYY"}

Icons from the Noun Project

  • Checklist by David Courey from the Noun Project
  • AI by mungang kim from the Noun Project
  • Science by Akriti Bhusal from the Noun Project
  • Success File by Ben Davis from the Noun Project

Collections to look into