Coder Social home page Coder Social logo

undp-data / sdg-labelling-app Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 8.36 MB

A web app for labelling texts by SDG written in Python Dash.

Home Page: https://sdg-labelling-app.azurewebsites.net

License: Apache License 2.0

Python 87.91% CSS 11.49% Dockerfile 0.23% Shell 0.38%
azure-web-apps dash python sustainable-development-goals text-labelling

sdg-labelling-app's Introduction

sdg-labelling-app

A web app for labelling texts by SDG written in Python Dash.

Introduction

The application is designed to facilitate the collection of texts labelled by Sustainable Development Goals (SDGs). It consists of two main components: a front-end web application written Python Dash and a back-end database which can be either a native MongoDB or Azure Cosmos DB for MongoDB.

The application can be run locally or on the remote server using Docker. For details about deployment, read the sections below.

Getting Started

The application has been developed in Python 3.10.

Using Docker

The simplest way to get started with the app is to clone the repository and follow the instructions in another README.md.

Using Dash and MongoDB

To run the application without Docker, you will need two things: a virtual Python environment and a connection to a MongoDB instance (either local or remote).

  1. Create a virual environment by following the instructions from the official documentation.
  2. Install the dependencies with pip install -r requirements.txt.
  3. Specify the required environment variables (see below), including the connection to MongoDB.
  4. Run the app with python app.py.

You also need a connection to a MongoDB instance which must have two collections populated with data in a specific format. The two collections are users (which cannot be called anything else) and texts collection (whose can be called anything you want). You can manually import sample data JSON files under docker/ directory or use your own data that follows the exact same format.

TBC.

Build and Test

Before deploying a web app to Azure Web Services via GitHub Actions, set both WEBSITE_WEBDEPLOY_USE_SCM (source) and SCM_DO_BUILD_DURING_DEPLOYMENT (source) to true in application settings.

Contribute

TBC.

sdg-labelling-app's People

Contributors

mykolaskrynnyk avatar spraet avatar

Stargazers

Mohammad Namakshenas avatar

Watchers

Fabián Araneda-Baltierra avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.