Skip to content

akwodkiewicz/watcher-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZOLC

This project serves as a preparation for the Best Hacking League hackathon.

Setup

  1. Install Docker
  2. Clone backend and frontend repositories as subdirectories of this directory. The directory tree should look like this:
      docker-config
      ├───backend
      ├───frontend
      ├───nginx-config
      └───docker-compose.yml
    
  3. Execute:
    $ docker-compose up -d
    
    while in the docker-config directory. This command will build any missing images and run all the containers.
  4. Access the application at http://localhost:4200. The /api/ URL prefix redirect the request to the backend server stripping the /api prefix in the meantime.

General information

As service name you should use:

  • backend
  • frontend
  • app (for the nginx reverse proxy, shows all the traffic that gets to the server)
  • database

List of useful Docker commands:

  • docker-compose up -d - starts all the containers in daemon mode (in the background).

  • docker-compose down - stops all the containers.

  • docker-compose logs [service] - shows the logs from all the containers. You may alternatively input the service name to see logs only from that service, this is optional.

  • docker ps - shows running containers.

  • docker-compose exec [service] [command] - run a command inside a docker container.

    docker-compose exec [service] bash gives you shell access to that container.

  • docker-compose build [service] - (re)builds the specified service's image (or images for all the services). Useful if you introduced any changes to files referenced in Dockerfile or to the Dockerfile itself.

    IMPORTANT! Generally you want to use build after changing the requirements.txt file (for backend), because it means that new libraries should be downloaded.

Database structure

See database-diagram.png.

Technologies we use

  • Docker
  • GraphQL
  • Angular
  • Python
  • MongoDB
  • Progressive Web Apps

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages