An open API service indexing awesome lists of open source software.

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

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.