Skip to content

colabobio/thdc-website

Repository files navigation

Travel Health Data Commons website

This is React + Vite website about the Travel Health Data Commons (THDC), including a registration form for people interested in the initiative.

Run development server

First, install dependencies:

npm install

Then, launch the server to run locally:

npm run dev

Firebase settings

This site uses Firebase to store the user registration information. To setup the Firebase account, follow these steps:

  1. Go to the Firebase Console.
  2. Create a new project (or use an existing one).
  3. Register a "Web App" (</> icon) and copy the firebaseConfig object provided.
  4. Create a .env file in the root folder of this project and enter the values:
VITE_FIREBASE_API_KEY=AIzaSy...
VITE_FIREBASE_AUTH_DOMAIN=your-project.firebaseapp.com
VITE_FIREBASE_PROJECT_ID=your-project
VITE_FIREBASE_STORAGE_BUCKET=your-project.appspot.com
VITE_FIREBASE_MESSAGING_SENDER_ID=123456...
VITE_FIREBASE_APP_ID=1:123456...

Important: Do not add the .env file to revision control.

Anonymous Authentication

Since the site is designed to log into Firebase anonymously, but Anonymous Authentication is not enabled by default. To turn Anonymous Authentication on:

  1. Go to the Firebase Console and open the project.
  2. In the left sidebar, click Build, then click Authentication.
  3. Click the Get started button (if you haven't already).
  4. Select the Sign-in method tab.
  5. Click on Anonymous in the list of providers.
  6. Toggle the Enable switch to "On" and click Save.

React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published