Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yazinsai/test-files-nextjs
https://github.com/yazinsai/test-files-nextjs
Last synced: 30 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yazinsai/test-files-nextjs
- Owner: yazinsai
- License: other
- Created: 2023-06-26T06:15:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-26T06:23:40.000Z (over 1 year ago)
- Last Synced: 2024-12-24T16:56:06.157Z (about 1 month ago)
- Language: CSS
- Homepage: https://test-files-nextjs.vercel.app
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Dynamic Hit Counter exercise
Once again, we're working on our hit counter!
This time, everything works swell when we run in development (`npm run dev`), but things don't quite work when we try to build for production (`npm run build` and then `npm run start`). The number of hits appears fixed in place, and doesn't increase when we refresh the page.
Your mission is to fix this bug!
## 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.