Skip to content

sealuzh/sopra-fs20-template-client

Repository files navigation

SoPra FS20 - Client Template

Getting started with React

Read and go through those Tutorials, It will make your life easier!

  • Read the React Docs
  • Do this React Getting Started Tutorial (it doesn’t assume any existing React knowledge)
  • Get an Understanding of CSS and HTML!

Once you have done all of this, in the template there are two main external dependencies that you should look at:

  • styled-components It removes the mapping between components and styles (i.e. external css files). This means that when you're defining your styles, you're actually creating a normal React component, that has your styles attached to it
  • react-router-dom Declarative routing for React being a collection of navigational components that compose declaratively with your application.

Prerequisites and Installation

For your local development environment you'll need Node.js >= 8.10. You can download it here. All other dependencies including React get installed with:

npm install

This has to be done before starting the application for the first time (only once).

npm run dev

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console (use Google Chrome!).

npm run test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

Learn More

To learn React, check out the React documentation.

Thanks to Lucas Pelloni for the template

About

A simple template for the SoPra 2020 client!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published