How to Run
There are three ways to run this application.
- Locally or
- Deployed on Heroku or
- Local via Docker Container
Local
There is too much set up and many unknowns that can create problems for an inexperienced user to deploy locally, but essentially the user can do the following.
- Clone this project from Github.
- Navigate into the newly created directory.
- run
npm install
(assuming the user has npm/node installed) - run
npm run start
Deployed
The app is deployed on Heroku at the following URL. However, I just realized that since this app is not a web app, I won't be able to deploy it via Heroku unless I convert the app to a webapp. I would need to add express, create a simple ui that uses a form, displays the alerts on a web browser, rather than console I/O. https://thawing-fjord-50659.herokuapp.com/ | https://git.heroku.com/thawing-fjord-50659.git
Docker
Note: All the commands below need to be run using a terminal shell and done so in the root folder of the app.
- Clone this project from Github.
- Ensure Docker is installed and running.
- Run
docker-compose down --remove-orphans
- Run
docker-compose up -d
- Run
npm run start
To connect to the database directly
docker-compose exec db psql -U postgres -d uphold_data
Purpose
To play around with blockchain, node, text input outside of a web app (terminal text... old school), docker, and database deployment.