Collect your error logs in any application. This is a Flask app and this README.md is still being updated.
- source bootstraps.sh then alter to taste, if need be.
make download
andmake install
to download & install the necessary libraries.- If you encounter errors during the build of uwsgi, blinker, uwsgitop, pyperclip and wrapt, just overlook it.
- Install
pre-commit
on Mac withbrew install pre-commit
or on Linux withsudo snap install pre-commit --classic
- Run
pre-commit install
for you to be able to make use of .pre-commit-config.yaml
- Ports are quoted here, e.g. 9030. Please note that if you have changed such quoted ports in your
.env
file, remember to change it to taste where appropriate.
- Type
make
and choose any command that shows afterwards - To reload the application run by nginx: type
make livereload
- Type
make auth u=username p=password
- Visit http://127.0.0.1:9030/
- Enter the details you created in Step 1 above
- If you will be using the app through its API then do the following Steps
- Type
make access u=username ip=IP-ADDRESS
to assign an IP theusername
you created in Step 1 - Type
make details u=username
to get the details of ausername
Note: Step 5 will produce a Unique ID that will be added to headers of each request for the API to honour such!
- Activate your virtual environment (not inside the container)
- Type
make stats
or visit http://127.0.0.1:9030/stats - inet_http_server details
- Visit http://127.0.0.1:9050/ and use the credentials from Step 4. to access it
- type
make bash
to enter the container - run
flask run --host 0.0.0.0
- In case you don't want to use
docker
, see DEVELOPMENT.md
make test
runs unit tests
make build
make routes
displays all the routes so that you can know which one to work withdocker-compose ps
helps you see the running apps and the ports they are serving on
adminer is used to interface the DB of this application. Here is a sample configuration
- Some commands like
make usid
,make auth
have commented lines in the Makefile on how to use them. - run
pre-commit install
for you to be able to make use of .pre-commit-config.yaml
If you find anything that needs to be taken care of, please submit a PR.