This is the repository for the Synctropic Farming project.
- see backend_go/README.md for details on how to build and run the backend.
- see frontend/README.md for details on how to build and run the frontend.
- see database/README.md for details on how to build and run the database.
Start the api and the db using docker-compose.
docker-compose up -d api
Because the api needs the db service to run, starting the api will automatically start the db.
There are two things to do when doing a backup of the data:
- export the database data
- copy the upload directory of the backend
docker exec syntropic-db-container pg_dump <db_name> --username <user> | gzip -9 > backup.sql.gz
gunzip < database/backup.sql.gz | docker exec -i db_container psql <db_name> --username <user>