GithubHelp home page GithubHelp logo

anajembaedwin / recylox_database Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 697 KB

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

JavaScript 93.01% CSS 6.99%
next-api nextjs nextjs-serverless nextjs-starter nextjs-template polybase reactjs yarn

recylox_database's Introduction

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! ๐Ÿ’ช๐Ÿ’ป

recylox_database's People

Contributors

anajembaedwin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.