Skip to content

anajembaedwin/recylox_database

Repository files navigation

This project uses the Next starter template: polybase_basic_template_js, from PriyathamVarma

Main_iamge

Getting Started

  • Git clone this repo

  • yarn install

  • yarn run dev

  • node callSchemas.js(in a new terminal)

File Structure

Pages

  • Pages are located in the pages folder. Each page is a React component.

APIs

  • APIs are located in the pages/api folder. Each API is a serverless function.

Schemas

  • Schemas are located in the pages/api/schemas folder. Each schema is for each collection.

🔹 Step 1: Navigate to /pages/api/schemas directory.

🔹 Step 2: Create a new file (e.g., newFile.jsx) to define the schema.

🔹 Step 3: Add the file name to the apiEndPoints as "/api/schemas/newFile".

🔹 Step 4: Inside newFile.jsx, design the schema as per your requirements, utilizing the available rules and guidelines.

🔹 Step 5: Run the command node callSchemas to deploy the newly created schema.

By following these steps, you can easily create and deploy a new schema for your application. 🚀💡

Remember, defining schemas is an important aspect of maintaining data consistency and structure. Take your time to carefully design the schema based on the specific needs of your application. ✨🔍

Now, let's go ahead and create that new schema! 💪💻

About

A test off-chain polybase database setup for the frontend of recylox dapp, an incentive token for plastic recycling

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published