Skip to content

Tristan22400/project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tutorial on webapp using flask, sqlite and angular

Adapted from:

Installation

  • Install npm from https://www.npmjs.com/get-npm, then install angular and javascript dependencies:

      npm install -g @angular/cli
      npm install --save rxjs-compat
      npm install @angular/material @angular/cdk hammerjs
    
  • Install Python Anaconda from https://docs.conda.io/en/latest/miniconda.html, then install a Python virtual environment with required dependencies:

      conda env create -n angularflask -f environment.yml
    

Usage

To deploy the website locally, launch flask in a first terminal:

conda activate angularflask
FLASK_APP=./backend/src/main.py WEBAPP_DB=./db.sql flask run -h 0.0.0.0

In another terminal run the Angular server:

conda activate angularflask
cd frontend && ng serve

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published