next-cochise/README.md

40 lines
695 B
Markdown
Raw Normal View History

2025-02-01 06:57:24 +07:00
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
## Getting Started
2025-02-03 13:43:52 +07:00
### 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:
2025-02-01 06:57:24 +07:00
```bash
2025-02-03 13:43:52 +07:00
npm run dev-old
2025-02-01 06:57:24 +07:00
2025-02-03 13:43:52 +07:00
```
2025-02-01 06:57:24 +07:00
2025-02-03 13:43:52 +07:00
or run the development server with new bundler (turbopack):
2025-02-01 06:57:24 +07:00
2025-02-03 13:43:52 +07:00
```bash
npm run dev
2025-02-01 06:57:24 +07:00
2025-02-03 13:43:52 +07:00
```
2025-02-01 06:57:24 +07:00
2025-02-03 13:43:52 +07:00
### 3. Open
2025-02-01 06:57:24 +07:00
2025-02-03 13:43:52 +07:00
You can access it by visiting:
2025-02-01 06:57:24 +07:00
2025-02-03 13:43:52 +07:00
```
http://localhost:3000
```
2025-02-01 06:57:24 +07:00
2025-02-03 13:43:52 +07:00
## Admin Panel
2025-02-01 06:57:24 +07:00
2025-02-03 13:43:52 +07:00
The admin panel has been provided by `Payload CMS`, you can access it by visiting:
2025-02-01 06:57:24 +07:00
2025-02-03 13:43:52 +07:00
```
http://localhost:3000/admin
```