Identity project for the homeless.
There are two ways to run the application:
- "Run Local", where the database and app are both served from your local machine
- "Containers", where the app is deployed in a Docker container, connected to a separate database container. Both containers run on your machine.
- Install Git
- Download this repo.
- Install Node, at least version 10.1.
- Install MongoDB
- Run a local database instance from a terminal:
mongod - Clone this repository, and cd into the directory.
npm installnpm run buildnpm start- Open a browser to http://localhost:3000/.
For a container deployment, you do not even need to install node on your machine. The web server will be deployed onto a docker container image that already has node installed.
- Install Git
- Download this repo.
- Install Docker
docker image build -t samiam .docker-compose up -d staging-deps- Open a browser to http://localhost:3000/.
- To shut down,
docker-compose down
You can easily deploy onto Heroku for free, just follow these instructions. Other cloud providers are similar.
- Create a mongodb instance. mLab is a good resource.
- Create a heroku app instance.
- Put the mongo connection string into the environment variable
MONGODB_CONNECTusing the following command:heroku config:set MONGODB_CONNECT=[mongo_connect_url]. - Set
NODE_ENV:heroku config:set NODE_ENV=development. - Deploy by following the instructions in your heroku app dashboard. (You will add heroku to the git remotes, then push to it).