Skip to content

Commit

Permalink
Prep for CodeSandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwcomeau committed Jun 20, 2023
1 parent 94399be commit 0b850b7
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 3 deletions.
31 changes: 31 additions & 0 deletions .codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
// These tasks will run in order when initializing your CodeSandbox project.
"setupTasks": [
{
"name": "Install Dependencies",
"command": "npm install"
}
],

// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {
"dev": {
"name": "dev",
"command": "npm run dev",
"runAtStart": true,
"preview": {
"port": 3000
}
},
"build": {
"name": "build",
"command": "npm run build",
"runAtStart": false
},
"start": {
"name": "start",
"command": "npm run start",
"runAtStart": false
}
}
}
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
## Next 13 template
# Next 13 + Bright

This is a _super minimal_ starter for Next 13's App Router.
This repo is for an exercise in my React course, [The Joy of React](https://joyofreact.com/).

Not intended for use in production. Purely used for educational reasons.
## Running a development server

First, install the dependencies:

```bash
$ npm install
```

Then, start a local development server:

```bash
$ npm run dev
```

**Note:** Unlike create-react-app, we need to run the `dev` command, not `start`. The `start` command is used to run a _production_ server; we'll learn more about that later in the course.

0 comments on commit 0b850b7

Please sign in to comment.