Skip to content

theiotproject/keybox-page

Repository files navigation

How to run project in dev mode

  1. Change name of .env.example to .env.development
  2. Fill all fields with values from firebase project
  3. Install node packages with npm i command in terminal while beeing inside of project directory

Disclaimers for developers

Security note 🔐

Any environment variable prefixed with VITE_ has the potential to be leaked to the client browser if you use it in your Svelte components. Make sure to do the following to keep potential secrets safe:

  • ✅ ALWAYS: Only use secret keys in "endpoints" or other server-side code (e.g. a database connection string, auth token or secret)
  • 🛑 NEVER: do something like const env = import.meta.env in a component as now anyone can access all the values attached to env.
  • 🛑 NEVER: access your private environment variables in React components or routes (e.g. DON'T do this in a component: console.log(import.meta.env.VITE_DATABASE_URL)).

Used technologies, api, hooks

  • project created using $ npm create vite@latest
  • react router
  • firebase
  • react-firebase-hooks
  • react-hook-form
  • yup schema resolver for validation
  • react-tostify
  • dayjs for date formatting

About

Website for 2023 keybox project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages