All Projects → drminnaar → react-clicker

drminnaar / react-clicker

Licence: other
A basic React app that allows one to increase, decrease, or reset a counter

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to react-clicker

eslint-config
ESLint rules for Cybozu
Stars: ✭ 45 (+40.63%)
Mutual labels:  eslint
sapper-postcss-template
A template that includes Sapper for Svelte and PostCSS preprocessing with Tailwind CSS
Stars: ✭ 84 (+162.5%)
Mutual labels:  eslint
eslint-config-satya164
An ESLint config with automatic overrides for common environments such as TypeScript, Jest etc.
Stars: ✭ 45 (+40.63%)
Mutual labels:  eslint
starbase
⭐ Production-ready website boilerplate made with webpack 5, modern JS (via Babel 7) & Sass
Stars: ✭ 70 (+118.75%)
Mutual labels:  eslint
next-pwa-template
Next.js progressive web app template
Stars: ✭ 266 (+731.25%)
Mutual labels:  eslint
eslint-plugin-ember-best-practices
Static analysis tools for enforcing best practices in Ember
Stars: ✭ 77 (+140.63%)
Mutual labels:  eslint
node-backend-template
A template for NodeJS backend projects
Stars: ✭ 19 (-40.62%)
Mutual labels:  eslint
create-react-redux-app
React boilerplate based on create-react-app
Stars: ✭ 49 (+53.13%)
Mutual labels:  eslint
awesome-address-book
This project shows a basic address book built with ReactJS, Redux Toolkit and Typescript 📖
Stars: ✭ 20 (-37.5%)
Mutual labels:  eslint
GfycatDetailsConvert
Reddit bot built on top of snoowrap which helps with converting Gfycat URLs.
Stars: ✭ 14 (-56.25%)
Mutual labels:  eslint
standard-packages
List of packages that use `standard`
Stars: ✭ 32 (+0%)
Mutual labels:  eslint
eslint-config-get-off-my-lawn
A highly opinionated, sharable config of ESLint rules to produce beautiful, readable JavaScript.
Stars: ✭ 44 (+37.5%)
Mutual labels:  eslint
eslint-plugin-test-selectors
Enforces that data-test-id attributes are added to interactive DOM elements (JSX) to help with UI testing. JSX only.
Stars: ✭ 19 (-40.62%)
Mutual labels:  eslint
alexa-skill-clean-code-template
Alexa Skill Template with clean code (eslint, sonar), testing (unit tests, e2e), multi-language, Alexa Presentation Language (APL) and In-Skill Purchases (ISP) support. Updated to ASK-CLI V2.
Stars: ✭ 34 (+6.25%)
Mutual labels:  eslint
react-enterprise-starter-kit
Highly Scalable Awesome React Starter Kit for an enterprise application with a very easy maintainable codebase. 🔥
Stars: ✭ 55 (+71.88%)
Mutual labels:  eslint
vite-react-ts-tailwind-firebase-starter
Starter using Vite + React + TypeScript + Tailwind CSS. And already set up Firebase(v9), Prettier and ESLint.
Stars: ✭ 108 (+237.5%)
Mutual labels:  eslint
elint
A easy way to lint your code
Stars: ✭ 38 (+18.75%)
Mutual labels:  eslint
gandalf-lint
Bad Code Shall Not Pass
Stars: ✭ 29 (-9.37%)
Mutual labels:  eslint
Vue2-All
Vue2 + Vue-router2 + Vuex + Webpack + axios + jwt
Stars: ✭ 67 (+109.38%)
Mutual labels:  eslint
create-react-typescript-app
Integrating Reactjs with Typescript + ESLint
Stars: ✭ 20 (-37.5%)
Mutual labels:  eslint

React Clicker

A basic React app that allows one to increase, decrease, or reset a counter.

Go here for live demo.

This project also demonstrates:

  • a typcial React project layout structure
  • babel setup and configuration
  • webpack setup and configuration
  • eslint setup and configuration
  • SCSS setup and configuration
  • How to run application in a Docker container
... ...

Developed With

  • Node.js - Javascript runtime
  • React - A javascript library for building user interfaces
  • Babel - A transpiler for javascript
  • Webpack - A module bundler
  • SCSS - A css metalanguage
  • Bootstrap 4 - Bootstrap is an open source toolkit for developing with HTML, CSS, and JS
  • Surge - Static web publishing for Front-End Developers
  • Docker - A container management system

Related Projects

  • react-starter

    A basic template that consists of the essential elements that are required to start building a React application

  • react-clock-basic

    A basic clock that displays the current date and time

  • react-timer-basic

    A basic timer that will start a countdown based on an input of time in seconds

  • react-timer-advanced

    A basic countdown timer that offers an advanced UI experience

  • react-masterminds

    A basic game of guessing a number with varying degrees of difficulty

  • react-movie-cards

    A basic application that displays a list of movies as a list of cards

  • react-calculator-standard

    A calculator that provides the essential arithmetic operations, an expression builder, and a complete history of all expressions

  • react-bitcoin-monitor

    An app that monitors changes in the Bitcoin Price Index (BPI)

  • react-weather-standard

    A weather application that displays the current weather, daily forecasts, and hourly forecasts based on your current geolocation


Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

The following software is required to be installed on your system:

  • Node 8.x
  • Npm 3.x

Type the following commands in the terminal to verify your node and npm versions

node -v
npm -v

Install

Follow the following steps to get development environment running.

  • Clone 'react-clicker' repository from GitHub

    git clone https://github.com/drminnaar/react-clicker.git

    OR USING SSH

    git clone [email protected]:drminnaar/react-clicker.git
  • Install node modules

    cd react-clicker
    npm install

Build

  • Build application

    This command will also run ESLint as part of build process.

    npm run build
  • Build application and start watching for changes

    This command will also run ESLint as part of build process.

    npm run build:watch

Run ESlint

  • Lint project using ESLint

    npm run lint
  • Lint project using ESLint, and autofix

    npm run lint:fix

Run

  • Run start

    This will run the 'serve' npm task

    npm start
  • Run webpack dev server

    npm run serve:dev
  • Alternatively run live-server (simple development http server with live reload capability)

    npm run serve

Docker Instructions

An alternative to installing and running application on your local machine is to build and run your own Docker container that will host the application. There are 2 files related to Docker setup namely:

  • Dockerfile - Used to create Docker Image

  • .dockerignore - Used to ignore files in local path that are not required in the container

To get the application up and running in a Docker container, please follow the following instructions:

  1. Build Docker Image

    The following command will build a new Docker Image called 'react-clicker' with the tag '1.0.0' using the Docker file found in the application root.

    docker build -t react-clicker:1.0.0 .
    
  2. Run Docker Container

    The following command will start a new container based on the Docker image created above. The application within the container runs on port 8080, therefore, as part of command we map container port to local host port. We also give the container a name and run it in the background. The '--rm' switch indicates that the container will be automatically removed once it is stopped.

    docker run --rm --name react-clicker -p 8080:8080 -d react-clicker:1.0.0
    
  3. Open application

    By typing the following command, you should see a runing container having the name 'react-clciker'.

    docker container ls
    

    If the container is running, you may navigate to the application using your browser at the following address:

    http://localhost:8080

Lastly, if you're curious to have a look inside container, then you may type the following command:

docker exec -it react-clicker /bin/sh

The above command provides you an interactive shell on the container. Please note that the above command must be executed on a running container.


Versioning

I use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].