Git Product home page Git Product logo

hello_template's Introduction

A Template for Creating a Full Stack Web Application with Flask, NPM, Webpack and Reactjs

About

This is a Hello React! web app template written in Python-Flask for the back end and React-JS for the front end. You can use this starter files as a template for your own web app projects.

How I Did It!

You can find a walkthrough of how I build this application from scratch on my blog

Instructions

Below are the installing and running procedues

Installing

  1. make sure you have python, npm, and pip installed on your machine. For this project, I used : npm v4.6.1, pip v18.0, python v3.6.2
  2. Enter in to the directary hello_template/templates/static/ and run the command npm install. This will download and install all the dependencies listed in package.json.
  3. In the static directory, start the npm watcher to build the front end code with the command npm run watch
  4. Create a python virtualenv(Optional)
  5. Install flask with the command $ pip install flask
  6. Install Reactjs with the command $ npm i react react-dom --save-dev

Running

  1. Go to the root directory and start the server with python run.py
  2. If all is working correctly, you will be given an address http://127.0.0.1:5000/ which you can open in your favorite browser and see our application running and displaying “Hello React!”

hello_template's People

Contributors

eyongkevin avatar

Watchers

James Cloos 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.