This is an initial project of building a RESTful web service in Flask. Ideally, we expect the project structure can be a standard for staring a new web service.
- python 3.6 up
-
Create a project folder d
$ mkdir my-project
-
run venv
$ cd my-project $ python3 -m venv ./venv
-
activate virtual environment
-
On Windows, run:
$ .\venv\Scripts\activate.bat
-
On Unix or Mac, run:
$ source ./venv/bin/activate
-
-
Copy the all files from the initial project to /my-project.
-
Install modules:
$ pip install -r requirements.txt