Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
This is a basic template to start with polybase

![Main_iamge](https://github.com/PriyathamVarma/polybase_basic_template_js/blob/main/public/Polybase.png)
![Main_image](https://github.com/PriyathamVarma/polybase_basic_template_js/blob/main/public/Polybase.png)

## Getting Started

- Git clone this repo
Git clone this repo, then run

- npm install
```bash
npm i
npm run dev
node callSchemas.js
```

- node callSchemas.js

- npm run dev
Open http://localhost:3000/ to view

## File Structure

Expand Down
2 changes: 1 addition & 1 deletion pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function Home() {
const id = Math.floor(Math.random() * 1000000); // This can be changed to a more unique id
const submittingData = await db
.collection("SampleCollection")
.create([id, name, age]);
.create([id.toString(), name, parseInt(age)]);
};

return (
Expand Down