https://github.com/toggle-corp/fieldsight-docker
https://github.com/toggle-corp/fieldsight-docker
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/toggle-corp/fieldsight-docker
- Owner: toggle-corp
- Created: 2018-04-06T15:04:12.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-24T15:18:04.000Z (about 8 years ago)
- Last Synced: 2025-10-10T19:37:10.478Z (9 months ago)
- Language: Shell
- Size: 146 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Requirements
* [docker](https://docs.docker.com/install/)
* [docker-compose (v3)](https://docs.docker.com/compose/install/)
### Clone repo
kobocat
```bash
git clone https://github.com/toggle-corp/fieldsight kobocat
```
kpi
```bash
git clone https://github.com/toggle-corp/form-builder kpi
```
kobocat-template
```bash
git clone https://github.com/toggle-corp/kobocat-template
```
### kobocat setup
- Copy sample file
```bash
cp ./kobocat/onadata/settings/local_settings.sample.py ./kobocat/onadata/settings/local_settings.py
```
- Set `FCM_API_KEY` to proper value in the `local_settings.py` file
```json
....
FCM_API_KEY = ""
....
```
### kpi setup
- Copy sample file
```bash
cp ./kpi/kobo_playground/local_settings.sample.py ./kpi/kobo_playground/local_settings.py
```
- Create database `kobocat1` (one time or after postgres database wipe)
```bash
docker-compose exec db bash
# Inside container
psql -U postgres
# Inside psql shell
CREATE DATABASE kobocat1;
```
## Run
Build docker images and start project
```bash
docker-compose build
docker-compose up
```