yarn dev
# start and initialize database
supabase start
# stop
supabase stop
# stop and clear database
supabase stop --no-backup
API Docs : http://localhost:3001/api/docs
- To execute a script, create a User (via App or Script)
- Authenticate using Swagger http://localhost:3001/api/docs#/Authentication
- Click "Authorize" button and provide the bearer token from step #2
# build the docker file - --platform needs to match the fly.io instances. currently linux/amd64.
docker build --platform linux/amd64 -f Dockerfile -t credbull-local-api ../..
# list docker images
docker images
Docker Interactive shell, e.g. run ls
to see image folder contents
docker run -it credbull-local-api /bin/sh
# exit interactive shell
exit
# run docker
docker run -d -p 3001:3001 --name credbull-local-container credbull-local-api
## list running docker containers
docker ps
# view docker logs
docker logs credbull-local-container
# stop the container
docker stop credbull-local-container
# delete the container
docker rm credbull-local-container
# delete the image
docker rmi credbull-local-api