pyrenaicus / next-13-dynamic-hit-counter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dynamic Hit Counter exercise

Once again, we're working on our hit counter!

This time, everything works swell when we run in development, but things don't quite work when we try to build for production; The number of hits appears fixed in place, and doesn't increase when we refresh the page.

Your mission is to fix this bug!

Helpful NPM commands

First, install the dependencies:

$ npm install

You can run a local development server with:

$ npm run dev

In this exercise, though, you'll want to run the application in production. You can do that by first generating a production build, and then starting a production server:

$ npm run build

# ...then, once the build is completed:
$ npm run start

I also created a helper script, start:local, which you can run if you get an error message about port conflicts:

$ npm run start:local

It does the exact same thing, but starts the server on port 4000.

About

License:Other


Languages

Language:CSS 55.8%Language:JavaScript 44.2%