Clone repo:
git clone https://github.com/cloyd/sitepoint-counter.git
cd sitepoint-counter
Install the dependencies:
yarn install
or
npm install
This is a simple counter application.
It includes the following features:
- Add a named counter to a list of counters
- Increment any of the counters
- Decrement any of the counters
- Delete a counter
- Show a sum of all the counter values
- Persist data back to the server
- Server side rendered JavaScript application
Start a live-reload development server:
yarn dev
or
npm run dev
Generate a production build:
yarn build
or
npm run build
Start a production build server:
yarn start
or
npm run start
sitepoint-counter/
README.md
package.json
server.js
components/
Header/
index.js
Form/
index.js
List/
index.js
Item.js
nav.js
pages/
_app.js
_document.js
index.js
static/
fonts
utils/
api.js
Node modules / technology used:
- NextJS - To create Universal web apps in React
- apisauce - Promise based HTTP client for the browser and node.js
- styled-components - Styles
- react-spring - Animation Library
- Font Awesome 5 React component - Icons