Skip to content

andirkh/hello-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cara pakai

install Nix

link download nixpkgs https://nixos.org/download (tdk perlu NixOS)

masuk ke nix-shell

nix-shell

nanti dia akan download dependencies yg ada di shell.nix. saya cuma masukin git, python 3.11, pip dan pdm

run python code

pdm run start

or specify your engine

pdm run start DJANGO
# list: RAW, DJANGO, SOCKETIFY, FASTAPI, FLASK

additional, docker (not recommended way) :

build docker image

docker build -t hello-world .

or

pdm run build

remove :

os.environ["ENGINE"] = XXX

fill the ENVIRONMENT VARIABLE in Docker before you run the container. Here's the list of the variable :

RAW: str = 'RAW'
DJANGO: str = 'DJANGO'
FLASK: str = 'FLASK'
SOCKETIFY: str = 'SOCKETIFY'
FASTAPI: str = 'FASTAPI'

run via docker image di container via desktop/terminal

About

nix - python - pdm - docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published