From 0212610a1597083dfc28503ff318ccc5cd418e2e Mon Sep 17 00:00:00 2001 From: RizqiSyahrendra Date: Mon, 3 Feb 2025 13:43:52 +0700 Subject: [PATCH] docs: readme --- .env.example | 8 -------- README.md | 47 +++++++++++++++++++++++++---------------------- env | 12 +++++++++++- 3 files changed, 36 insertions(+), 31 deletions(-) delete mode 100644 .env.example diff --git a/.env.example b/.env.example deleted file mode 100644 index 1a08508..0000000 --- a/.env.example +++ /dev/null @@ -1,8 +0,0 @@ -# Added by Payload -DATABASE_URI=your-connection-string-here -PAYLOAD_SECRET=YOUR_SECRET_HERE -S3_BUCKET=YOUR_BUCKET -S3_ACCESS_KEY_ID=YOUR_ACCESS_KEY -S3_SECRET_ACCESS_KEY=YOUR_SECRET -S3_REGION=YOUR_REGION -S3_ENDPOINT=YOUR_ENDPOINT diff --git a/README.md b/README.md index e215bc4..dbf544c 100644 --- a/README.md +++ b/README.md @@ -2,35 +2,38 @@ This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next- ## Getting Started -First, run the development server: +### 1. Create .env file + +You can create `.env` file based on `env` file, put some env variable that is required by payload cms. + +### 2. Run + +You can run the development server with old bundler: + +```bash +npm run dev-old + +``` + +or run the development server with new bundler (turbopack): ```bash npm run dev -# or -yarn dev -# or -pnpm dev -# or -bun dev + ``` -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. +### 3. Open -You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. +You can access it by visiting: -This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel. +``` +http://localhost:3000 +``` -## Learn More +## Admin Panel -To learn more about Next.js, take a look at the following resources: +The admin panel has been provided by `Payload CMS`, you can access it by visiting: -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. - -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome! - -## Deploy on Vercel - -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. - -Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details. +``` +http://localhost:3000/admin +``` diff --git a/env b/env index 663262d..d7eb772 100644 --- a/env +++ b/env @@ -2,4 +2,14 @@ SERVICE_SUPABASESERVICE_KEY=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzdXB SERVICE_SUPABASEANON_KEY=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzdXBhYmFzZSIsImlhdCI6MTczODQ3MzA2MCwiZXhwIjo0ODk0MTQ2NjYwLCJyb2xlIjoiYW5vbiJ9.WXJvhzD1gD6Kxlq8PLFAcpaVFmh9h3xbJHh9oow2IFQ -SUPABASE_URL=https://supabasekong-n00g8kwoos4skc0gw44k8sks.dev3vds1.link \ No newline at end of file +SUPABASE_URL=https://supabasekong-n00g8kwoos4skc0gw44k8sks.dev3vds1.link + + + +DATABASE_URI=your-connection-string-here +PAYLOAD_SECRET=YOUR_SECRET_HERE +S3_BUCKET=YOUR_BUCKET +S3_ACCESS_KEY_ID=YOUR_ACCESS_KEY +S3_SECRET_ACCESS_KEY=YOUR_SECRET +S3_REGION=YOUR_REGION +S3_ENDPOINT=YOUR_ENDPOINT