Skip to content

lesmevesajudes/simulation-report-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simulation-store

An api to store and retrieve simulations made with lesmevesajudes-ui. Created from a bootstrap to create RESTful APIs with Node.js, Express and Postgres.

NOTE: Now only supports one user. See env variables.

Installation

yarn install

Database setup

psql -f data/reset_simulation_store.sql

You can configure your database connection setting DATABASE_URL environment variable.

Usage

yarn start

Setting up your queries

  • **/**Requests.js: functions and exports.
  • **/routes.js: endpoints.

Configuration

This app is configured using the following environment variables:

  • AUTH_TOKEN: A token used to query simulation reports. (mandatory to query data)
  • AUTH_USER: Client user
  • AUTH_PASSWORD: Client password
  • DATABASE_URL: Where to find postgres database. (mandatory)
  • NODE_ENV: To force node environment. (development by default)
  • HOST: Listen address (0.0.0.0 by default)
  • PORT: Listen port (3000 by default)

Names can be tuned in src/config.js.

About

A tool to store simulations made during benefit validation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •