This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run devOpen http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.
Whenever working on auth-reliant features (e.g. submissions dashboard) your local dev environment will need the following:
- Self-signed certificate to proxy the host
-
Install
mkcertusing homebrew, choco or equivalent package manager -
Run
mkcert -install(you may need to restart your browser after this) -
Generate a certificate for dev domain:
mkcert local.dev.virusseq-dataportal.ca
- Setup SSL proxy
-
Add the following entry to your system hosts file (e.g. /etc/hosts):
127.0.0.1 localhost.dev.virusseq-dataportal.ca -
Start the server:
npm run dev:submission(This will use the generated certificates.)
This is a simplified list of the available functionalities in this app,
| Variable Name | Default | Description |
|---|---|---|
| NEXT_PUBLIC_ENABLE_DOWNLOADS | false | Enables downloading data at "Exploration" and "Data Releases" pages |
| NEXT_PUBLIC_ENABLE_LOGIN | false | Allows submitters to login |
| NEXT_PUBLIC_ENABLE_REGISTRATION | false | Allows new submitters to register |