-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94399be
commit 0b850b7
Showing
2 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |