# Install pip env manager
sudo apt install python3-venv
## python -m pip install --upgrade pip
# Create the env
python -m venv comics_env
# Activate the env
source comics_env/bin/activate
# Deactivate
deactivateImportant
For corrupted virtual env:
rm -rf comics_env
python3 -m venv comics_env
source comics_env/bin/activatepip install -r requirements.txt
# after installing new dependencies run
pip freeze > requirements.txt
## check updates
pip-review --local
## apply them
pip-review --autoNote
On termux there are several dependencies that need to be installed manually, and they can take hours to install.
pkg install c-ares
GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY=1 GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1 GRPC_PYTHON_BUILD_SYSTEM_CARES=1 CFLAGS+=" -U__ANDROID_API__ -D__ANDROID_API__=30 -include unistd.h" LDFLAGS+=" -llog" pip install grpciopython srcpython -m unittest discover -s testsenv PYTHONPATH=src python3 -m pytest src/*/*_test.py -vnpm run server
# Or for debug
python src/__main__.py server debug(cd go_server && go run ./cmd/server/main.go)git push heroku
heroku logs --tail # debugShould be triggered with every commit to the main branch on github repo
Tip
Check the tls folder to configure certificates for https local mode
npm install
npm start
# or
npm run start:dev # runs in https local modeRuns the app in the development mode.
Open https://localhost:3000 to view it in the browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
npm testLaunches the test runner in the interactive watch mode.
See the section about running tests for more information.
npm run build
# GH-pages
npm run deploy && git push originBuilds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.