Express backend for the Blaasveld.net project
Use npm start
to run the project locally on port 3000.
- Build the Docker image with
docker build . -t jbrems/blv-express
. - Start the container with
docker run -p 3000:3000 jbrems/blv-express
.
Or use npm run docker
.
- Make sure you are logged in to Google Cloud or login with
gcloud auth login
. - Make sure
blaasveld-net
is the active project withgcloud config list
or rungcloud config set project blaasveld-net
. - Run
gcloud builds submit --tag gcr.io/blaasveld-net/blv-express
to upload the container image to Google Cloud. - Start the container with
gcloud run deploy --image gcr.io/blaasveld-net/blv-express blv-express --allow-unauthenticated
.
Or use npm run deploy
.
- Go to https://console.cloud.google.com/run?project=blaasveld-net.
- Select the running service and click
Delete
.