- First, you need Python and a running PostgreSQL database.
- Create a virtual environment and install all necessary packages:
- First alternative, create a virtual environment; for VS Code, create a Python Environment and include or install afterwards all required Python packages over pip:
pip install -r requirements.txt
. - Second alternative, install pipenv
pip install pipenv
and then install all necessary packagespipenv install
.
- First alternative, create a virtual environment; for VS Code, create a Python Environment and include or install afterwards all required Python packages over pip:
- Create a .env file where you define the 'DATABASE_URL = 'postgresql://{user}:{password}@{host}:{port}/{database}''.
- Run the 'create_user.py' file in order to create a user, just follow the instructions for setting user and password.
- (Optional) Generate demo content; run the
create_content.py
file. - Run FastAPI:
fastapi dev main.py
- Open the http://127.0.0.1:8000/docs URL to the openapi.json
-
Notifications
You must be signed in to change notification settings - Fork 0
Bike configurator's API
License
kdrachtidis/bike-configurator
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Bike configurator's API
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published