GithubHelp home page GithubHelp logo

cloud_chat_app_backend_focused's Introduction

Chat app wireframe

Notes before you start

This app is functional but not complete: there are missing feature and the code style is far from perfect.

We chose to use Python and React because these are part of our stack, but you can use anything you want.

This is mostly an example to help you getting started with docker and not spend too much time setting up the base project.

Feel free to use this as baseline for your project, as a reference or discard it completely.

Getting Started

Prerequisites

  • Make sure to have docker installed beforehand

Running app

docker-compose up

# or run in daemon mode

docker-compose up -d

The first run will also build the containers.

The API should be available at http://localhost:5000

The UI should be available at http://localhost:3000

The code in API and UI is mounted directly inside the container and the apps are running with auto reloading, meaning you do not need to rebuild the containers if you just modify the code.

If you add libraries to the UI or to the API, you need to rebuild the containers to install them. This is quite obvious for the API (being a python project) but not for the UI, considering the node_modules is created inside the container in the same directory where the source code is but it is not shared with mounted directory on the host machine.

Note about UI

In the UI project there are 2 routes /login and /chat with prebuilt forms. In the footer there is a ping/pong recurring event as a check that the communication between the UI and API is working.

Stopping app

docker-compose down -v

Note: the -v is important because of the named volume defined for the UI project.

cloud_chat_app_backend_focused's People

Contributors

giocalitri avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  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.