Skip to content

Latest commit

 

History

History
51 lines (29 loc) · 1.82 KB

README.md

File metadata and controls

51 lines (29 loc) · 1.82 KB

Mocky Frontend

This project was bootstrapped with Create React App, using the Redux and Redux Toolkit template.

Environment variables

You must define these environment variables. For local development, fill the .env file.

Domain & API

  • REACT_APP_DOMAIN="http://localhost:3000": What is the URL of this frontend
  • REACT_APP_API_URL="https://api.mocky.site": What is the URL of the mocky API

Maintenance mode

  • REACT_APP_MAINTENANCE=false: Set to true to activate the maintenance page

Analytics tracking

  • REACT_APP_GOOGLE_ANALYTICS_TRACKING_ID="UA-XXXXXX-X": Fill this variable if you want to activate Google analytics tracking

Customization

  • REACT_APP_SHOW_PROMOTING_PANEL=true: Display or not the promoting panel (give a shoot on twitter, buy me a beer)

Available Scripts

In the project directory, you can run:

yarn start: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.

yarn test

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

yarn 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.