Coder Social home page Coder Social logo

buzz's Introduction

Buzz api

Buzz API build in Python with Flask.

Contents

Developing

Before developing in a new terminal session, run

`source setup.sh`

This sets up pre-push hooks and installs dependencies.

There are a couple of ways you can build the project for development and testing;

  • Docker containers. Slow and not automatic. Fully featured testing, "as it is deployed".
  • Docker and Python Server. A mix of both solutions. DB is in Docker, Python Server serves Flask.

Docker Containers

There are two containers at the moment, one for the python server, and one for the database.

To build the containers, run:

./buildContainers.sh

To start containers

./start.sh

To restart just the server instead of restarting the server and the db

./restartServer.sh

To check logs:

docker logs buzzserver
or
docker logs buzzdb

If you want to access the db container from the server container, use the url

buzzdb.buzz

If you want to access the server container from the db container, use the url

buzzserver.buzz

To install docker on Ubuntu:

sudo apt-get update
sudo apt-get install docker-ce
sudo gpasswd -a <your user name here> docker

To access web server:

  • Build and start the containers
  • The web server should be accessible at localhost:1221
  • The db should be accessible at localhost:3301

Docker and Python Server

Docker compose

  • see HugoKlepsch/reverse-proxy-network for files to create network.

buzz's People

Contributors

hugoklepsch avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

nskoretz

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.