kios-webapp/apps/api
2024-03-11 13:27:55 -03:00
..
src Working Docker build 🎉 2024-03-11 13:27:55 -03:00
types Clone starter 2024-03-07 15:31:41 +01:00
.dockerignore Clone starter 2024-03-07 15:31:41 +01:00
.eslintrc.cjs Clone starter 2024-03-07 15:31:41 +01:00
.gitignore Clone starter 2024-03-07 15:31:41 +01:00
Dockerfile Clone starter 2024-03-07 15:31:41 +01:00
nodemon.json Clone starter 2024-03-07 15:31:41 +01:00
package.json Attempt at docker building 2024-03-08 13:06:23 -03:00
README.md Clone starter 2024-03-07 15:31:41 +01:00
tsconfig.json Clone starter 2024-03-07 15:31:41 +01:00

api

This project was created using create-payload-app using the blog template.

How to Use

yarn dev will start up your application and reload on any changes.

Docker

If you have docker and docker-compose installed, you can run docker-compose up

To build the docker image, run docker build -t my-tag -f Dockerfile ../..

Ensure you are passing all needed environment variables when starting up your container via --env-file or setting them with your deployment.

The 3 typical env vars will be MONGODB_URI, PAYLOAD_SECRET, and PAYLOAD_CONFIG_PATH

docker run --env-file .env -p 3000:3000 my-tag