This project uses Firestore to store its data.
To continue using Firestore, create a database. Once you've done that, you need a service account and private key. Go to IAM & admin > Service accounts in the Google Cloud console. Generate a new private key and save the JSON file. Then create a new .env file and set the following environmental variables: Set FIREBASE_PRIVATEKEY to your private key. Set FIREBASE_PROJECTID to your project id. Set FIREBASE_CLIENTEMAIL to your client email.
If you're not using Firestore, then replace the functions in app/components/firestore.ts.
This project also uses functions to secure passwords.
To continue using these functions, create an environmental variable called ENCRYPTER_PRIVATEKEY, and set it to a random string.
If you don't want to use these functions, replace the functions in app/components/encrypter.ts.
Running the development server:
npm run dev
Running the production server:
npm run build
npm run start
Once the server is running, create surveys by going to the editor subdirectory of your domain and creating an account. To take surveys, go to the main directory of your domain.
You can change the title by modifying the metadata export in app/layout.tsx
You can add survey templates for users by creating your own survey, downloading it as a JSON, and pasting the contents into the array in app/surveyTemplates.ts