Skip to content

React.js Local Development Setup

Oskar edited this page Aug 7, 2019 · 5 revisions

Steps for setting up frontend (React.js) project on Windows

  • Node (version 8+)

Client code was set up using create-react-app as a template.
Docs can be found here.

Running the project

  1. Check out repository

  2. Navigate to /spring-react/react and fire npm i ( or npm install if you like to waste time)
    needless to say you need to run this only once. Run it again if you make some changes in package.json around your dependencies, or if you accidentally delete /node_modules/ folder, although if you need to run install again i would suggest running npm ci which is a newer api that works significantly faster.

  3. Running client side code takes a single command, npm run start as you are all set.
    Code is served on this address: http://localhost:3000/

Clone this wiki locally