Update Supabase server instructions and scripts
Updated README.md and scripts to separate the 'web application' and 'Supabase server' in the development process. Modified package.json to include specific scripts for starting, stopping, and generating the Supabase schema. Also adjusted GitHub workflow to start Supabase server before running the app and reduced retention of Playwright report artifacts from 30 to 7 days.
This commit is contained in:
34
README.md
34
README.md
@@ -68,10 +68,42 @@ pnpm i
|
||||
pnpm dev
|
||||
```
|
||||
|
||||
This command will run both the web application and the Supabase container. If the Supabase container is already running, it will only start the web application.
|
||||
This command will run the web application.
|
||||
|
||||
Please refer to `apps/web/README.md` for more information about the web application.
|
||||
|
||||
### 3. Start the Supabase server
|
||||
|
||||
To start the Supabase server, you can use the following command:
|
||||
|
||||
```bash
|
||||
# Start the Supabase server
|
||||
pnpm run supabase:web:start
|
||||
```
|
||||
|
||||
This command runs the Supabase server locally for the app `web`.
|
||||
|
||||
Should you add more apps, you can run the following command:
|
||||
|
||||
```bash
|
||||
# Start the Supabase server for the app `app-name`
|
||||
pnpm run supabase:app-name:start
|
||||
```
|
||||
|
||||
And to stop the Supabase server, you can use the following command:
|
||||
|
||||
```bash
|
||||
# Stop the Supabase server
|
||||
pnpm run supabase:web:stop
|
||||
```
|
||||
|
||||
To generate the Supabase schema, you can use the following command:
|
||||
|
||||
```bash
|
||||
# Generate the Supabase schema
|
||||
pnpm run supabase:web:typegen
|
||||
```
|
||||
|
||||
## Architecture
|
||||
|
||||
This project uses Turborepo to manage multiple packages in a single repository.
|
||||
|
||||
Reference in New Issue
Block a user