A web app for labelling texts by SDG written in Python Dash.
This file explains how to use Docker containers to set up a local environment for developing the application. Using Docker allows to run the application locally and connect it to a MongoDB database that resembles the database used in production. To run both a Dash web-app and mock-up MongoDB database, do the following:
- Make sure the docker engine is running on your machine (see Docker Desktop).
- Open the terminal.
- Navigate to the
/docker
directory inside this project. - Run
docker compose up --build -d
. This will spin up two containers and populate the database in the background. - Go to http://localhost:8050/login to open the web app in your browser.
- Use
name.surname@email.com
andpassword
to log in to the app. - You can perform any actions you'd like as the application is connected to your local database instance.
- To remove the containers, run
docker compose down
. - When you make changes to the source code of the application, repeat steps 4 through 8 to view them.