This repo is the ui app for the TrackTerra. It is built using react using mui framework.
Create a .env file and set this this var REACT_APP_API_URL=<api_url>
$ yarn install
$ yarn start
$ yarn build
It is recommended to use nginx as reverse proxy server when deploying node apps. Please refer to this link for more information.
Here is also another way to do it if using nginx directly:
after building the app copy the contents of build dir to www then configure a host in nginx and copy the following script
server {
listen 80;
listen [::]:80;
root /var/www/html/ui/;
index index.html index.htm;
server_name localhost;
location / {
try_files $uri /index.html;
}
}
This project wouldn't be possible without this awesome project, Minimal.
This project is MIT licensed.