GithubHelp home page GithubHelp logo

oc-p12-sportsee-03-2024's Introduction

Welcome aboard, captain

image

This project is the 12th in the course OpenClassrooms "Développez un tableau de bord d'analytics avec React" course. It introduces students to React JS with complex data and varied sources, as well as to the use of external libraries (NPM) such as D3 (used here).

This project was developed with:

If you need more information about the project, please go to package.json

Start

Download the project by saving it in a directory on your computer:

git clone https://github.com/Jean-Baradat/OC-p11-kasa-01-2024.git

You'll also need a project representing a local API server: Available here: P9-front-end-dashboard

This server is not required to run the local, but we'll see how to use it later.

Launch locally (Mocked data)

Let's start by installing the dependencies:

npm i

and launch Vite:

npm run dev

The server is started, noting that here you're using the mocked data in the file:

  • src\db\dataMock.js (Modify them to check)

If you need more information about commands, please go to package.json

Launch locally (local API server)

Now you want to run the local API server, no problem. Take a look at the documentation on P9-front-end-dashboard and start the server with:

yarn
yarn dev

Your local API is launched, but the application won't know its path.

You need to create the following file in the directory root:

  • .env.production

Then, in your new .env.production file, add the line shown in the example file:

  • .env.exemple

Then after the colons, add the local URL of your local API server that you launched, also including /user/.

You should have something like VITE_API_URL=http://localhost:3000/user/

The local API server is launched, the application has its environment variables, there's just one step left.

Build

Build the application:

npm run build

Then to see this version:

npm run preview

You can also make: (To see the result on another machine in your network.)

npm run preview:network

Environment variables

This project used the environment variables in:

  • .env.development

Use the example .env.example to create your:

  • .env.production

Configuration

Below you will find the configuration for all the development tools used for this project. Do not modify if you don't know how.

ESlint

  • .eslintrc.json

Prettier

  • .prettierrc.json

Js config

  • jsconfig.json

Tailwind

  • tailwind.config.js

Tailwind

  • vite.config.js

Workspace Settings

A .vscode file contains configurations for VScode for this project.

Jean 👋

oc-p12-sportsee-03-2024's People

Contributors

jean-baradat 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.