Important: make sure you have Python installed locally on your machine
- Navigate to the root project folder in command prompt:
$ cd react-slack-server
- Create virtual environment named env:
$ py -m venv env
- Activate virtual environment:
$ env\Scripts\activate
- Install dependencies:
$ pip install -r requirements.txt
- Create a file named
.env
in the project root - Add
LOCAL=True
to it on the first line. All following entries should each be placed on their own line - Add
DATABASE_URL_PROD=
and set it to the Heroku postgres database url - Add
DATABASE_URL_DEV=
and set it to your local postgres database url - Add
MODE=development
- Make sure you're in the root project folder
$ cd react-slack-server
- Make sure your virtual environment is enabled
$ env\Scripts\activate
$ py app.py
- Navigate to
http:/localhost:5000
in your browser
To kill the server enter CTRL + C
twice in the command prompt quickly. If it doesn't shut down right away refresh the browser tab.
To deactivate the virtual environment when you're finished running: $ deactivate