Skip to content

Cameronek/PyeFarmProject

 
 

Repository files navigation

PyeFarmProject

NOTE THAT PROJECT HAS 3 MAIN SECTIONS, SEPARATED BY FOLDERS -- Frontend (frontend development) -- Monitoring (for api) -- PyeFarmProject (mostly configuration)

Team members

  • Cameron King
  • Luke Billard
  • Jumanah Babar
  • Andrew O'brien
  • Aaron Greenland


Setup


Initial Configuration

STRONGLY RECOMMENDED creating a virtual environment by doing:

  1. py -m venv PyeFarm
  • In order to "activate" the virtual environment
  1. optional: Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

    • may be required for computers using Windows
  2. run:

  • PyeFarm\Scripts\activate (Windows) OR source PyeFarm/bin/activate

  • Now, you should be in the virtual environment.

  1. Make sure you have python 3.12 installed and then download dependencies contained in the requirements file
  • pip install -r requirements.txt
    • (Do this while in the virtual environment)

Node Modules install

  1. cd frontend

  2. npm i

  • (I already had node installed so this might cause problems, not sure)

To run webapp

  1. python3 manage.py runserver
  • Running without python3 has resulted in an import error for Django before

To compile frontend:

  1. npm run dev
  • Will also likely need to install css-loader

    • npm install --save-dev css-loader
  • If MaterialUI is not working for you, try the following

    1. npm install @mui/material @mui/styled-engine-sc styled-components
    1. npm install @mui/icons-material
    1. npm install @fontsource/roboto

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •