https://github.com/inseefr/sonor
Case management web application for administration of Computer-Assisted Personal Interviewing (CAPI)
https://github.com/inseefr/sonor
transverse-component
Last synced: 11 months ago
JSON representation
Case management web application for administration of Computer-Assisted Personal Interviewing (CAPI)
- Host: GitHub
- URL: https://github.com/inseefr/sonor
- Owner: InseeFr
- License: mit
- Created: 2020-07-02T12:58:31.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-12T06:22:57.000Z (about 2 years ago)
- Last Synced: 2024-04-15T01:57:57.767Z (about 2 years ago)
- Topics: transverse-component
- Language: JavaScript
- Size: 2.03 MB
- Stars: 0
- Watchers: 10
- Forks: 4
- Open Issues: 28
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sonor app
## Installation
### Requirements
- Node.js (version > 10.15)
- npm or yarn
### Install dependencies
`npm install` or `yarn install`
## Configuration
### Configuration of the application
The configuration of the application can be modified in the .env file :
```
AUTHENTICATION_MODE
PEARL_JAM_URL
QUEEN_URL_BACK_END
QUEEN_URL_FRONT_END
ISSUER_URI
OIDC_CLIENT_ID
```
## Usage
### Start the app
`npm start` or `yarn start`
Runs the app in the development mode.
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
### Start mock servers
To test the application at this point you need to use the server _mocked_apis_server_ to serve the pearlJam APIs.
You will find it at the root of this project : /mocked_apis_server
`cd ./mocked_apis_server`
Run the following commands to install and start the server:
`npm install` (or `yarn install`)
`npm start` (or `yarn start`)
### Run unit tests with jest
`npm run test` or `yarn run test`
To see the tests coverage:
`npm test -- --coverage` (or `yarn test -- --coverage`)
### End to end tests with cypress
`npm run cypress:open` or `yarn run cypress:open`