GithubHelp home page GithubHelp logo

sopraclient's Introduction

SoPra FS21 - 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.
  • react-hooks Let's you access the state of the router and perform navigation from inside your components.

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.

For macOS user running into an 'fsevents' error: jest-community/vscode-jest#423

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

sopraclient's People

Contributors

royru avatar alexscheitlin avatar botmanski avatar solodezaldivar avatar alainkueng avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.