Skip to content

lilylei95/CLT-webapp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLTracker

This is the web app repository for the convention logistics tracker. Inside this repo you will find:

  • An Angular2 frontend
  • A Flask backend
  • A docker configuration for deploying to production

The backend is based off https://github.com/ansrivas/angular2-flask

Info

  1. backend directory contains the flask backend with simple authentication methods

  2. front directory contains the angular2 frontend based on angular2-webpack

Usage

  1. Clone the repo

    git clone --depth 1 https://github.com/CLTracker/CLT-webapp.git
    cd CLT-webapp
  2. Install the backend related requirements and run. The following will start a flask-server on localhost:8080

    cd backend
    sudo pip install -r requirements.txt
    python run.py
  3. Install frontend related dependencies

    cd front
    
    # install global dependencies
    npm install webpack-dev-server rimraf webpack typescript -g
    
    # install project related dependencies
    npm install
    
    # run server with hot module replacement
    npm run start:hmr
    # run server without hot module replacement
    npm run start

Docker support (UNTESTED, WIP):

The current build is using nginx to serve static files. The pre-requisite is to run the following commands and then use docker-compose

  1. Build the frontend ( production build )
cd front
npm install webpack-dev-server rimraf webpack typescript -g
npm install
npm run build:prod
  1. Now, in project root directory execute docker-compose up

  2. Navigate to http://localhost:3000 and login using admin:admin

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 46.5%
  • Python 25.1%
  • TypeScript 21.6%
  • HTML 2.5%
  • CSS 2.3%
  • Nginx 2.0%