Skip to content

Getting Started

onlinejudge95 edited this page Nov 22, 2019 · 2 revisions

Getting Started

On an uber level, you need to do the following steps to get the server up and running in the development environment

  • Clone the repo
    $ git clone https://github.com/onlinejudge95/Flask-REST-Server-Template.git
    
  • Update the .env file
    $ cp .env.example .env
    $ cat .env
    FLASK_ENV=development
    FLASK_DEBUG=True
    
  • Create a virtual environment, we are using pipenv to make sure of deterministic builds
    $ pipenv --python 3.7
    $ pipenv install --dev
    
  • Start the server
    $ pipenv run python manage.py
    
Clone this wiki locally