see demo snap,
see HushHub Backend
- Dockerize Application
- Docker Hot reloading for local development
- Multistage build
- Separate credentials for local dev and production (.env)
- Local docker image
- Pull/push from the docker hub
- Log formatting (Configure logging in application)
- Docker tool to wrap complex docker commands in a simpler format
- application health check monitoring and notification system
- test scripts to catch bugs at early stage
- CI/CD (more to come)
-
Install latest version of docker in your system
-
Install python3 on your system (should come with your distro BTW)
-
Setup devtool. Go to 'tools' dir and run -
$ pip3 install .
-
Now run the tool from your 'app' directory.
$ devtool run --app-name devfrontend
-
example
devtool --help
-Usage: devtool [OPTIONS] COMMAND [ARGS]... Options: --install-completion [bash|zsh|fish|powershell|pwsh] Install completion for the specified shell. --show-completion [bash|zsh|fish|powershell|pwsh] Show completion for the specified shell, to copy it or customize the installation. --help Show this message and exit. Commands: get-errors get application errors. get-logs get application logs. list-images get list of images. ls get list of things in current directory, use it to see if you are where you should be. run run the application. stop stop the running application.
The file should be named as .env
, devs will get the dev env from the lead. no env specific things should reside on the repository.
-
If gitignore is not taking changes, reason is Git's cache hasn't been refreshed to reflect the changes in Gitignore.
git rm -r --cached git add . .
-
if you are a mac OSX user and facing permission issue please change setting on your docker-desktop application -
In Preferences > General there is an option "Use gRPC FUSE for file sharing" which is by default checked. Uncheck that option Apply and restart.
ashraf minhaj