Skip to content

daveyonbrown/cna-web-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CNA Web Tool

Run with Docker

# 1) clone the repo 
git clone repo

# 2) cd into repo root
cd cna-tool

# 3) pull and start the containers
docker compose -f docker-compose-dev.yml pull
docker compose -f docker-compose-dev.yml up -d

Docker Hub Repo Links

Non Docker method

Requirements:

  • Python 3.11+
  • Node.js 18+ and npm

Backend Setup

# 1) cd into backend directory  and install these 
cd backend


# 2) create a virtual and activate env

    #if on mac
    python3 -m venv .venv

    source .venv/bin/activate


    # or if on windows machine 
    python -m venv .venv

    .venv\Scripts\activate 

# 3) then install the dependencies from the reqs file
pip install -r requirements.txt

#4) now you can the backend 
python -m flask run

Frontend Setup

 
# 1) now in a new terminal run these commands 
cd frontend
npm install
npm run dev 

connection notes

I have a proxy set up in vite.config.js that connects the dev server, so all frontend request are set up to the Flask backend.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors