|
|
19 jam lalu | |
|---|---|---|
| .vscode | 3 minggu lalu | |
| src | 19 jam lalu | |
| tests | 3 minggu lalu | |
| .env.example | 1 Minggu lalu | |
| .gitignore | 3 minggu lalu | |
| .npmrc | 3 minggu lalu | |
| .prettierrc.json | 3 minggu lalu | |
| .yarnrc | 3 minggu lalu | |
| AGENTS.md | 3 minggu lalu | |
| API_DOCUMENTATION.md | 3 minggu lalu | |
| Dockerfile | 3 minggu lalu | |
| GALLERY_API_DOCUMENTATION.md | 1 Minggu lalu | |
| README.md | 3 minggu lalu | |
| docker-compose.yml | 3 minggu lalu | |
| eslint.config.mjs | 3 minggu lalu | |
| next.config.mjs | 1 Minggu lalu | |
| package.json | 2 minggu lalu | |
| playwright.config.ts | 3 minggu lalu | |
| pnpm-lock.yaml | 2 minggu lalu | |
| test.env | 3 minggu lalu | |
| tsconfig.json | 3 minggu lalu | |
| vitest.config.mts | 3 minggu lalu | |
| vitest.setup.ts | 3 minggu lalu |
This template comes configured with the bare minimum to get started on anything you need.
This template can be deployed directly from our Cloud hosting and it will setup MongoDB and cloud S3 object storage for media.
To spin up this template locally, follow these steps:
After you click the Deploy button above, you'll want to have standalone copy of this repo on your machine. If you've already cloned this repo, skip to Development.
cd my-project && cp .env.example .env to copy the example environment variables. You'll need to add the MONGODB_URL from your Cloud project to your .env if you want to use S3 storage and the MongoDB database that was created for you.
pnpm install && pnpm dev to install dependencies and start the dev server
open http://localhost:3000 to open the app in your browser
That's it! Changes made in ./src will be reflected in your app. Follow the on-screen instructions to login and create your first admin user. Then check out Production once you're ready to build and serve your app, and Deployment when you're ready to go live.
If you prefer to use Docker for local development instead of a local MongoDB instance, the provided docker-compose.yml file can be used.
To do so, follow these steps:
MONGODB_URL in your .env file to mongodb://127.0.0.1/<dbname>docker-compose.yml file's MONGODB_URL to match the above <dbname>docker-compose up to start the database, optionally pass -d to run in the background.The Payload config is tailored specifically to the needs of most websites. It is pre-configured in the following ways:
See the Collections docs for details on how to extend this functionality.
Users are auth-enabled collections that have access to the admin panel.
For additional help, see the official Auth Example or the Authentication docs.
This is the uploads enabled collection. It features pre-configured sizes, focal point and manual resizing to help you manage your pictures.
Alternatively, you can use Docker to spin up this template locally. To do so, follow these steps:
.env file in your project rootdocker-compose upThat's it! The Docker instance will help you get up and running quickly while also standardizing the development environment across your teams.
If you have any issues or questions, reach out to us on Discord or start a GitHub discussion.