In the project directory, you can run:
Install all the updates.
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.
Launches the test runner in the interactive watch mode.
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!
1: Add the tag for formatted message:
<FormattedMessage id="app.text" defaultMessage="Mensageo"/>
and the following import:
import { FormattedMessage } from 'react-intl';
2: Add the json reference in the all translations file:
src/translations/en.json
with the proper keys:
"app.text": "your text here""
You can find more options and information: https://github.com/formatjs/react-intl
Clone https://github.com/Mensageo-app/mock_api_server, run npm install
and npm start
to have a json server serving mock data for mensageo app.
The project now uses create-react-app, so how to setup the environmental variables is covered here
The style lint is added to the git hooks and it runs with every commit.
To auto fix complains you can run npx eslint --fix your_file
.
More info can be found here: https://eslint.org/