Frontend part of the OmicsPred Project (i.e. the OmicsPred website).
The website is built with ReactJS (using the Vite framework) and SCSS.
The web interface is fed data via a REST API server (aka OmicsPred backend).
-
Deploy the local backend (see 'OmicsPred backend' link above)
-
Edit the file
.env.development_templateand rename it.env.development, e.g.:ENV_TYPE=dev REST_API_URL=http://127.0.0.1:8000/api/ REST_API_URL_PUBLIC=http://127.0.0.1:8000/ OMICSPRED_ES_URL=http://127.0.0.1:8000/es_search/search/ -
Run the command
npm run dev
-
Deploy the remote backend (see 'OmicsPred backend' link above)
-
Edit the file
.env.production_templateand rename it.env.production, e.g.:ENV_TYPE=prod REST_API_URL=<private_rest_api_url>/api/ REST_API_URL_PUBLIC=https://rest.omicspred.org/ OMICSPRED_ES_URL=<private_rest_api_url>/es_search/search/ GA4_TRACKING_ID=<Google_Analytics_4_tracking_ID> -
Run the command
npm run build -
Deploy the frontend, e.g. in Google Cloud App Engine:
gcloud app deploy