Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/javiercbk/davinci
A web application that helps to record anthropometries and generates reports
https://github.com/javiercbk/davinci
anthropometry docker kubernetes mongo nodejs vue
Last synced: 28 days ago
JSON representation
A web application that helps to record anthropometries and generates reports
- Host: GitHub
- URL: https://github.com/javiercbk/davinci
- Owner: javiercbk
- License: unlicense
- Created: 2019-09-23T19:25:04.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-20T16:45:45.000Z (over 4 years ago)
- Last Synced: 2024-10-30T23:36:01.176Z (about 2 months ago)
- Topics: anthropometry, docker, kubernetes, mongo, nodejs, vue
- Language: JavaScript
- Homepage:
- Size: 214 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Davinci
Davinci is an antropometry software.
## Running davinci in a development environment
Go to the root of the project and execute
```bash
docker-compose build
docker-compose up
```That will expose the web application in port 5000 and port 9229 will be available for a remote debugger to be attached.
## Running davinci tests
In the command line type: `npm test`. The `launch.json` file contains the proper configuration to run the test from **vscode** as well.
## Running davinci in a production
If you want to deploy this application in a server it is recommended to create a production docker-compose file that overrides the default environment, you can name it `docker-compose.prod.yml`. That file **SHOULD NOT** be pushed in the repository and **MUST** be kept secret.
In this case you can start the server like this:
```bash
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
```## Testing local kubernetes
Follow [these steps](https://container-solutions.com/using-google-container-registry-with-kubernetes/) to allow google container access.
Create a k8s/davinci.yaml with the proper env vars and then
```bash
kubectl delete deployments --all
kubectl delete services --all
kubectl create -f k8s/davinci.yaml
# use proper nginx pod name
kubectl port-forward nginx-855b7f6c7f-mc7z8 8844:80
```