APACHE-2.0 License
This is a Next.js project bootstrapped with create-next-app
.
git clone https://github.com/GoogleCloudPlatform/devrel-demos.git
cd devrel-demos/app-dev/party-game/
npm install
npm run dev
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
To add a question to the database:
Add Member
Develop
-> Admin
Add document
Auto-ID
prompt
field, type string, with the value of the question you want to ask.answers
field of type arraytext
for the possible answerisCorrect
boolean for if the answer is correctTODO: Add more detail to this section for quick project creation
gcloud run deploy party-game --source .
flowchart TD
A[UI <br /> NextJS <br /> /app folder] -->|Post| B[Validation API <br /> NextJS <br /> /api folder]
B --> |Update| C[(Firestore Database <br /> protected by <br /> Firebase Auth)]
C -->|GET| A