This project uses the Next starter template: polybase_basic_template_js, from PriyathamVarma
-
Git clone this repo
-
yarn install
-
yarn run dev
-
node callSchemas.js(in a new terminal)
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! ๐ช๐ป