Skip to content

Mensageo-app/WebApp

Repository files navigation

Available Scripts

In the project directory, you can run:

npm install

Install all the updates.

npm start

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.

npm test

Launches the test runner in the interactive watch mode.

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!

Using Translations

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

Using the mock server

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.

Environments

The project now uses create-react-app, so how to setup the environmental variables is covered here

EsLint

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/