Skip to content

GazeDev/housingdb_app

Repository files navigation

HousingDB App

This frontend for the HousingDB api is built in Ionic 4, Angular.

Installation/Docker Commands

It is intended that you will use docker and docker compose. You'll need to run the commands below via command line to get started:


NOTE: We are going to use a bash alias to make running docker-compose files a bit less verbose. You can run the following to create docker-compose-local, docker-compose-deploy, and docker-compose-test alias commands:

echo "alias docker-compose-local='docker-compose --file=docker-compose-local.yml'" >> ~/.bashrc
echo "alias docker-compose-deploy='docker-compose --file=docker-compose-deploy.yml'" >> ~/.bashrc
source ~/.bashrc
echo "alias docker-compose-test='docker-compose --file=docker-compose-test.yml'" >> ~/.bashrc
source ~/.bashrc

Copy the app config (ready for running locally): cp variables.env.example variables.env

You should edit the variables.env and set the MAPBOX_ACCESS_TOKEN: nano variables.env

Compile the initial image, or if the Dockerfile changes: docker-compose build app

Bring up the container. This will tie the running process and logs to your terminal: docker-compose up app

You can now view the app in your browser: http://localhost:4201

To instead run a container detached, you can run the following: docker-compose up -d app

To view a detached container's logs as they are generated: docker-compose logs --follow

To stop a detached container: docker-compose stop

To open a bash shell in a container: docker-compose exec bash app

Committing

Good guide for git commits: https://chris.beams.io/posts/git-commit/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •