https://github.com/vutsalsinghal/calorie-compose
Local container orchestration of a full-stack webapp
https://github.com/vutsalsinghal/calorie-compose
docker docker-compose express-js graphql javascript knexjs nodejs pgadmin4 postgresql react
Last synced: 3 months ago
JSON representation
Local container orchestration of a full-stack webapp
- Host: GitHub
- URL: https://github.com/vutsalsinghal/calorie-compose
- Owner: vutsalsinghal
- Created: 2019-04-21T15:38:23.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-21T18:09:55.000Z (over 6 years ago)
- Last Synced: 2025-05-14T13:20:27.045Z (about 1 year ago)
- Topics: docker, docker-compose, express-js, graphql, javascript, knexjs, nodejs, pgadmin4, postgresql, react
- Language: JavaScript
- Homepage:
- Size: 65.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fluz Docker Compose
Local container orchestration of a full-stack webapp.
- Uses node express with Postgres database and graphql server to serve APIs
- React front-end
## Instructions
- Make sure you've `Docker` and `Docker-compose` installed
- Clone repo `$ git clone https://github.com/vutsalsinghal/calorie-compose.git .`
- Open terminal in the root dir and run `$ docker compose up`
Now to run the app
- Open terminal in root dir with `docker-compose.yml` present.
- [IMP] Rename `.env.example` to `.env` (in root, frontend and backend dir) and set apt values.
- Do `docker-compose up` to start the containers.
- Wait till the containers are up and then navigate to `localhost:3000` on the browser to access the React front-end
- User `user1` as username and password to login.
- To access `pgmyadmin`, navigate to `localhost:5555`. Enter `pgdb_container` for `hostname` of the database.
## Notes
- Passwords are stored as paintext in the postgres database (NEVER do that in production).
- Very basic auth module is implemented using JWT token stored in `localStorage` of browser.