Giter VIP home page Giter VIP logo

python-flask-angular-starter's Introduction

Webapp Starter with Flask REST API Backend and MongoDB

NOTE: There could occur problems running this on windows.

Development web backend/frontend

If desired, you can add a custom host in your hosts file (e.g. 127.0.0.1 db). Thus, the server config won't need any more configuration for production.

Docker development

I recommend using docker because it's just one command and everything is up and running:

Run docker-compose -f docker-compose.dev.yml up.

This will fire up a mongodb, backend and frontend and watch files for your local changes.

Backend development

Only if you prefer developing without using docker.

Run ./install.sh in the backend directory.

Run python app.py in backend root (will watch files and restart server on port 8081 on change). In order to install new packages, add them to the requirements.txt file. If you run the watcher.py (default when using docker) they will be automatically installed in the background so you can use them in your app.

Frontend development

Only if you prefer developing without using docker.

Run yarn install in the frontend directory.

Run yarn start in frontend root (will watch files and restart dev-server on port 4200 on change). All calls made to /api will be proxied to backend server (default port for backend 8081), this can be changed in proxy.conf.json.

Production web backend/frontend

Run docker-compose up in root. Will start four containers (mongodb, backend, frontend, nginx).

python-flask-angular-starter's People

Contributors

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