An escrow service (wItH Bl0cKChAiN)
- Clone the repo
npm install
innewapp/
- Create a .env file in
fastapi-container/app
and specifyACCESS_TOKEN_EXPIRE_MINUTES
,SECRET_KEY=
,ALGORITHM="HS-256"
. Also have an env file for mongo. docker compose up --build -d
- ez
- Same steps as above
- Then launch a python-alpine? container with fastapi and mount
fastapi-contianer
as a volume; install requirements and most importantly connect usingdocker network connect f-cs_backend_network fastapidev
otherwise it'll not be able to reach the database. Finally, runALLOWDEV=True uvicorn app.main:app --host 0.0.0.0 --port 80 --ssl-keyfile /key.pem --ssl-certfile /cert.pem --reload
in a tmux instance and detach. - Run a node-alpine container with volume as newapp for frontend. npm install and finally run
npm run dev -- --host --port 3000
in one terminal instance. And in another, runAPIloc=https://192.168.2.233 ./node_modules/.bin/vite build --emptyOutDir -w --outDir /tmp/distbuild
- remember to delete admin:admin from database after initial init. Or delete the init script and create admin on the mongodb's localhost (docker exec)