pyladies-bratislava / website

Frontend for the website of the Pyladies Bratislava chapter
MIT License
2 stars 2 forks source link

How to run the backend and frontend #17

Closed Stanka-ai closed 4 years ago

Stanka-ai commented 4 years ago

How to run the backend and frontend:

  1. Create virtual environment #python3 -m venv .venv
  2. Activate virtual environment #..venv\Scripts\activate BackEnd
  3. Install the requirements #pip install -r requirements.txt
  4. Create file .env
  5. Start backend (.venv)......\website\backend\flask run

FrontEnd:

  1. Install node.js (https://nodejs.org/en/download/)
  2. (.venv)......\website\forndend\npm install
  3. (.venv)......\website\frontend\npm start
Stanka-ai commented 4 years ago

I don't remember how Zuzka helped me to create .env file, but I found this and it worked.

How to create a file in windows terminal:

  1. Type copy con testfile.txt, but replace testfile with the desired file name. 2.Press Enter.
  2. Type your desired text. This is rudimentary text editor, but it's good for quick notes or code. You can use the Enter key as you type to move to the next line if you wish.
  3. Press Ctrl+Z when you're finished editing the file. This saves everything you've typed into the file.
Witchery commented 4 years ago

To the .env file save this information: FLASK_APP=api FLASK_ENV=development