GithubHelp home page GithubHelp logo

thirupathi-chintu / docker-flask-mongodb-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from paulo-amaral/docker-flask-mongodb-api

1.0 1.0 0.0 121 KB

🖖🏼Flask App API with MongoDB using Docker Compose.

License: MIT License

Dockerfile 13.39% Python 86.61%

docker-flask-mongodb-api's Introduction

alt text alt text alt text

DOCKER - FLASK/MONGODB API

Dev Environment - Python Flask App API with MongoDB using Docker Compose.

Motivation

This deploy was used for a humanitarian project by (JUS/UNWOMEN). This project permits that some people reporting sexual harassment in the public service in TIMOR-LESTE. We have been created a chatbot called ROSA.This Chatbot receives the complaints via API and saves it into a mongodb database for CRUD operations.

CheckoutROSA bot : https://m.me/RosaCFP.

Required Software

It uses Docker CE and Docker-compose: Compose is a tool for defining and running complex applications with Docker. With Compose, you define a multi-container application in a single file, then spin your application up in a single command which does everything that needs to be done to get it running.

To install, use my personal script (CentOS/Debian/Ubuntu) like this:

https://github.com/paulo-amaral/Install-docker-ce-docker-compose

Hands-on Install

Install Docker CE:

https://do.co/2TVqbbH

Install Docker-compose :

https://docs.docker.com/compose/install/

After installing Docker and Docker-compose on your machine, you can go to the project main folder and type:

$docker-composer build

$docker-compose up

Docker-compose will build the containers necessary for your environment. Basically there will be two containers, one with Python, Flask and a few modules and another container with MongoDB bound to the first. The environment structure is as follow:

How to install

1 - Clone repo:

 git clone https://github.com/paulo-amaral/docker-flask-mongodb-API.git

2 - Build : (optional)

 $docker-compose build

3 - Start and debug:

 $docker-compose up

Start NGROK and API(optional)

After deploy, you can use or setup a NGROK - https://ngrok.com/

This handy tool lets you set up a secure tunnel to your localhost, which is a fancy way of saying it opens access to your local API from the internet:

$./ngrok http 8080

docker-flask-mongodb-api's People

Contributors

dependabot[bot] avatar fredcido avatar lucolivi avatar paulo-amaral avatar

Stargazers

 avatar

Watchers

 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.