The COVIRAL webapp consists of two parts, the back-end (running on the server) and the front-end (files that run in the user's browser).
The back-end, which exposes a few simple API endpoints, is currently to be found in the separate antigen-flask repo. See https://github.com/chhotii-alex/antigen-flask Note that the Node/Express version of the back-end in this repo is OBSOLETE.
This repo contains the front-end, implemented in Svelte. See https://svelte.dev/ for more information about Svelte.
brew install node
node -v
cd
into the antigen-sensitivity
directory, then cd
into frontend
.
From there install/update dependencies using npm install
cd antigen-sensitivity/frontend
npm run dev
http://localhost:5173/
cd antigen-sensitivity/frontend
npm run build
frontend/build/
directory (build products that are created in the command above)
to your website
Note: The build command blows away the exsting contents of the build directory, including the file named
.htaccess. You may need the .htaccess file for deployment to an Apache server, otherwise Apache may not
attach the appropriate content-type header to .mjs files.