In the project directory, you can run:
npm install
Install node_modules beforing running the app.
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.
https://reactpaths.com/how-to-get-https-working-in-localhost-development-environment-f17de34af046
On [Linux], to let the map get your current location because it is not accepted on normal localhost (HTTP), follow these steps:
Create a private key rootSSL.key
and provide a pass phrase when asked for.
Create certificate rootSSL.pem
file using private key roorSSL.key
.
The validity is 1024
days which you can set to any number of days and I recommend the longer the better.
You will be asked a number of questions which you need to answer. For example: VI / HCMC / HCMC / BKU / BKU / Local Certificate / your@email.com
Now you can get your current location.