Skip to content

Commit

Permalink
Merge branch 'main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
fishonamos authored Dec 18, 2024
2 parents 45faf4f + 4a24726 commit 9b47c1a
Show file tree
Hide file tree
Showing 319 changed files with 22,527 additions and 27,172 deletions.
Binary file removed .DS_Store
Binary file not shown.
45 changes: 22 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,28 @@ on:
branches: ["main"]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Cache Scarb dependencies
uses: actions/cache@v3
with:
path: ~/.scarb
key: ${{ runner.os }}-scarb-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
${{ runner.os }}-scarb-
- name: Install Scarb
run: |
curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh
- name: Run Scarb commands
working-directory: ./land_registry
run: |
scarb fmt --check
scarb build
# build:
# runs-on: ubuntu-latest

# steps:
# - uses: actions/checkout@v3

# - name: Cache Scarb dependencies
# uses: actions/cache@v3
# with:
# path: ~/.scarb
# key: ${{ runner.os }}-scarb-${{ hashFiles('**/Cargo.toml') }}
# restore-keys: |
# ${{ runner.os }}-scarb-

# - name: Install Scarb
# run: |
# curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh

# - name: Run Scarb commands
# working-directory: ./land_registry
# run: |
# scarb build

test:
runs-on: ubuntu-latest
Expand Down
40 changes: 39 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,42 @@
.DS_Store

.snfoundry_cache/
target/
target/

## next app git ignore
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/client_test/node_modules
/client_test/.pnp
/client_test/.pnp.*
/client_test/.yarn/*
/client_test/!.yarn/patches
/client_test/!.yarn/plugins
/client_test/!.yarn/releases
/client_test/!.yarn/versions
# testing
/client_test/coverage
# next.js
/client_test/.next/
/client_test/out/
# production
/client_test/build
# misc
/client_test/.DS_Store
/client_test/*.pem
# debug
/client_test/npm-debug.log*
/client_test/yarn-debug.log*
/client_test/yarn-error.log*
# env files (can opt-in for committing if needed)
/client_test/.env*
# vercel
/client_test/.vercel
# typescript
/client_test/*.tsbuildinfo
/client_test/next-env.d.ts

**/*/.env
**/*/dist
**/*/node_modules
2 changes: 2 additions & 0 deletions Landver Design.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
### Design File
[link here] (https://www.figma.com/design/R8p51HPS8RSu0vyb4G5BnV/Lanver?node-id=69-987&node-type=canvas&t=HPrbX7jpW0umauXi-0)

[Updated design] (https://www.figma.com/design/erT3KdX76yjPBlpqNrVqEE/Landver?node-id=0-1&node-type=canvas&t=aZG7a1V8NanofP4Q-0)
36 changes: 21 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,42 @@
[![All Contributors](https://img.shields.io/badge/all_contributors-15-orange.svg?style=flat-square)](https://github.com/NoshonNetworks/landver/graphs/contributors)
<!-- ALL-CONTRIBUTORS-BADGE:END -->

[LandVer](https://landver.net/) is a decentralized land registration and verification protocol, utilizing blockchain technology to provide a secure, transparent, and immutable system for managing land records. The protocol facilitates land transactions and ownership verification across multiple blockchains, beginning with StarkNet.
[LandVer](https://landver.net/) is a decentralized land registration and verification protocol, utilizing blockchain technology to provide a secure, transparent, and immutable system for managing land records. The protocol facilitates land transactions and ownership verification on the Starknet blockchain.

While initially built on StarkNet, LandVer is designed to be cross-chain compatible, allowing land transactions and records to be securely managed across multiple blockchains. LandVer is one of the many products of Noshon Networks, which aims to bring innovation to the world of real estate.

## Roadmap

- Cross-Chain Support: Extend the protocol to support Ethereum, Binance Smart Chain, and other blockchains.
- Advanced Land Disputes Resolution: Implement on-chain dispute resolution mechanisms.
- Tokenized Land Ownership: Explore integration with NFTs for land tokenization.
nd locations on a map.
While initially built on Starknet, LandVer is designed to be cross-chain compatible, allowing land transactions and records to be securely managed across multiple blockchains. LandVer is one of the many products of Noshon Networks, which aims to bring innovation to the world of real estate.

## Project Structure

The project is divided into the following components:

- `backend/`: Node.js and Express-based API server
- `land-registry-backend/`: Node.js and Express-based API server
- `docs/`: Documentation for the project, including setup guides and API references
- `examples/`: React-based web application
- `land_registry/`: Land registry contract
- `public/`: Public assets and resources
- `scripts/`: JavaScript tools for automation and utility tasks
- `sdk/`: JavaScript for interacting with the smart contracts and API

## Land Registration Process Flow

![image](https://github.com/user-attachments/assets/a9c34c70-05d3-42aa-9ce3-0c84748f2fae)
# Development

Steps to build and run LandVer locally.

### Prerequisites

Ensure you have the prerequisites installed before proceeding.

[scarb](https://docs.swmansion.com/scarb/docs.html)
[snfoundry](https://book.getfoundry.sh/getting-started/installation)
[install npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
[install rust](https://www.rust-lang.org/tools/install)




# How to Run the Code
## How to Run the Code

## Running the Client and Server
### Running the Client and Server

Navigate to the client directory, install the packages, and start the client
```bash
Expand All @@ -50,7 +56,7 @@ npm run dev
```


Running the Land Registry Contracts
### Running the Land Registry Contracts

Navigate to the land_registry directory, build the contracts

Expand Down
6 changes: 6 additions & 0 deletions app/client/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": [
"next/core-web-vitals",
"next/typescript"
]
}
38 changes: 36 additions & 2 deletions app/client/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,36 @@
node_modules/
.env
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
36 changes: 36 additions & 0 deletions app/client/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
20 changes: 20 additions & 0 deletions app/client/components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "tailwind.config.ts",
"css": "src/app/globals.css",
"baseColor": "neutral",
"cssVariables": false,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
}
}
4 changes: 4 additions & 0 deletions app/client/next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};

export default nextConfig
Loading

0 comments on commit 9b47c1a

Please sign in to comment.