Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/snailedlt/payloadcms-from-scratch-demo

Example project using create-payload-app
https://github.com/snailedlt/payloadcms-from-scratch-demo

Last synced: 15 days ago
JSON representation

Example project using create-payload-app

Awesome Lists containing this project

README

        

# payloadcms-from-scratch-demo

This project was created using create-payload-app using the blank 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 .`

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`