Now you can get this app with App Store or Google Play Market
Get it on App Store
Get it On Google play Market
- Prepare all dependencies with
make start
. It will create environment folder./venv
, then start database and S3 (min.io) services. Database and S3 data will be stored in./temp
folder. - Change dev environment variables if you need to.
dev.env
file if you will use uvicorn server ordev_containered.env
if you will run service in container-
-
DATABASE__HOST - host address of postgres database (127.0.0.1). Requires postgres > 11.11
DATABASE__PORT - database port (5432)
DATABASE__USERNAME - databse username (db_user)
DATABASE__PASSWORD - databse password for username (db_user_pass)
DATABASE__NAME - database name (db_name)
-
S3__HOST - host (127.0.0.1)
S3__ACCKEY - storage access key
S3__SECKEY - storage secret key
S3__ENDPOINT - aws S3 api compatible cloud storage endpoint (http://127.0.0.1:9000)
S3__BUCKET - storage bucket (bucket)
-
SENTRY__DSN - sentry dsn. Optional
-
ENVIRONMENT= one of development / testin / production
-
-
-
- activate virtual environment:
source ./venv/bin/activate
- load environment:
set -o allexport; . ./dev.env; set +o allexport;
- use
uvicorn main:app --reload
- activate virtual environment:
-
- build container:
docker build -t NAME_OF_CONTAINER
- run container with environment file and do 8000-to-80 port forward:
docker run --rm -p 8000:80 --network nikolife-backend --env-file dev_containered.env NAME_OF_CONTAINER
- build container:
You can test API with a postman. All requests were exported with the collection file. You can find it in ./readme_files/nikolife.postman_collection.json
.
Here is instruction how to import data to postman.