pancake-taicho / moneysprouts

0 stars 5 forks source link

MoneySprouts

Get in the black, by going green! MoneySprouts is a progressive web app that helps its users to save money and accomplish their personal environmental goals at the same time.

moneysproutslogin moneysproutshome moneysproutseco

Current Features Include:

Team members

Getting Up and Running

The Backend Environment

  1. Clone Repo

  2. Create a virtual environment

    python3 -m venv <FOLDERNAME>
  3. Start the virtual environment

    For Mac Users ``` source //bin/activate ``` If you are using the M1 chip, you may need to use python 3.7 to be able to run the environment.
    For Windows Users Navigate to where your virtual environment folder is, and within that folder you should find another folder called Scripts, and within that a number of files. To start the virtual environment, you would need to run either the `activate.bat` or `activate.ps1`. To run, just type one of these files in your terminal, and press enter. If the start of the VM was successful, you should see `()` printed in your terminal. This would be written before the PATH. Run one of the following based on the following requirements: if using command prompt: ``` \\Scripts\activate.bat ``` or if using powershell: ``` Run \\Scripts\Activate.ps1 ```
  4. Install all dependencies

    pip install -r requirements.txt
  5. Ensure that your IDE's Python Interpretor is set to the interpretor located in your virtual environment folder. This would be either in the Scripts folder if you are a Windows user, or in the bin folder for Linux and Mac users. The interpretor would be the python.exe file. Have this set with your IDE.

  6. Create config for the flask development server Create a '.flaskenv' file in the be-server folder and set it's environment variables.

    FLASK_APP=main.py
    FLASK_ENV=development
  7. Start Flask Make sure you are in the be-server directory!!!

    flask run
  8. Create Initial Migration File

    alembic revision --autogenerate -m "initial"
  9. Seed

    alembic upgrade head

The Frontend Environment

fe-moneysprouts

The frontend environment must be set up from within the fe-moneysprouts folder.

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Vue CLI Configuration Reference.

Credits