-
Notifications
You must be signed in to change notification settings - Fork 98
Mac Setup
Timothy Ko edited this page May 20, 2018
·
2 revisions
Lucky for you, I have a Mac and have optimized the setup for Mac. You'll just need to run the Mac Setup script.
$ git clone https://github.com/tko22/flask-boilerplate.git
$ cd flask-boilerplate
$ ./mac_setup.sh
Visit here for step-by-step instructions on how to setup this up if you'd like to understand how to do it. Otherwise, the script works fine. To run the server, make sure you are in the root directory. Then, startup the virtual environment and run the server:
$ pipenv shell # startup virtual environment
(flask-boilerplate-_rcP-Rlt) bash-3.2$ python manage.py runserver
If you are using pipenv, you may also run commands without being inside your virtual environment like this pipenv run [command]
:
$ pipenv run python manage.py runserver
The API should be at http://127.0.0.1:5000/ for you to experience its beauty. To start and stop postgres:
$ brew services start postgresql
$ brew services stop postgresql