Piotr-Aueternum / rewards-program

React rewards program with mocked server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Intro

Intro

Application displays a rewards points for each customer based on transactions and specific business rules

Available Scripts

In the project directory, you can run:

npm start

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

The page will reload when you make changes.
You may also see any lint errors in the console. Proxy redirects http://localhost:3000/api to http://localhost:3010/api

npm run start_mock

Runs on http://localhost:3010 Available api:

  • /api/customers/rewards Database structure

npm test

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

npm run test_mock

Launches the test runner in the interactive watch mode. Recommended while working with mock server

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.

npm run start_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!

Runs local server that serves build files.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

About

React rewards program with mocked server


Languages

Language:JavaScript 83.7%Language:HTML 8.0%Language:CSS 8.0%Language:Shell 0.3%