Coder Social home page Coder Social logo

medaziz-mhatli / socketio-flask-react-chat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from etmoore/socketio-flask-react-chat

0.0 0.0 0.0 220 KB

A simple chat application that features a Flask back-end, React front-end, and Socket.io.

Shell 0.53% JavaScript 91.13% Python 2.14% CSS 3.55% HTML 2.66%

socketio-flask-react-chat's Introduction

Le Chat

A simple chat application that features a Flask back-end, React front-end, and Socket.io.

Easy Start:

  1. Verify that you have NPM, Python3, and Pip installed.
  2. Execute the run.sh script:
$ ./run.sh # from the root of the project

This will install all dependencies and startup the Flask server. Once the server is running, visit http://localhost:5000 in your browser to view the application. The React front-end will be served from client/build. If you want to work on the source code, see the 'Development' instructions below.

Development

Setup

1. Install client-side dependencies:

$ cd client # from the root of the project
$ npm install

2. Install server-side dependencies:

$ cd server # from the root of the project
$ pip install --editable .

Editing

1. Start the Flask server: (In another terminal window/tab:)

$ cd server
$ export FLASK_DEBUG=True
$ export FLASK_APP=server
$ flask run

This will start up a Flask server at http://localhost:5000.

2. Start the React development server:

$ cd client
$ yarn start

This will startup a React development server at http://localhost:3000.

3. Visit http://localhost:3000 in your browser to view the application.

4. Edit away! The app will automatically reload as you make changes.

Attributions

"Happy Cat" icon by Erika Jasso, from her Cat Collection @ the Noun Project

socketio-flask-react-chat's People

Contributors

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