Skip to content

lightshiftdev/roadsync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RoadSync

Simulation of real-time vehicle synchronization network to help manage road traffic efficiency with on-chain transactions and validation.

All vehicles within a certain radius are connected to a real-time session using decentralized edge reflectors. All computation is happening locally, and all participants are running the same shared VM.

Transactions between vehicles, such as “bribe to overtake” are happening in real-time on chain.

Usage

There are two components of the project, the shared simulation that uses Croquet and the smart contracts, written in Solidity and deployed in Core.

Dependencies

  • NodeJS

Croquet

The Croquet component can be found on the croquet/ directory.

To be able to run the application a Croquet API Key (obtainable here) is needed and a .env file needs to be created on the root of croquet/ directory.

.env EXAMPLE

VITE_CROQUET_API_KEY="<API_KEY>"
VITE_CROQUET_APP_ID="roadsync.ethlisbon.croquet.io"
VITE_CROQUET_APP_NAME="RoadSync"

RUNNING LOCALLY

npm install
npm run dev

BUILDING FOR DEPLOYMENT

npm install
npm run build

The built application will be on the dist\ directory.

Smart Contracts

The smart contracts component can be found on the contracts/ directory, it has its own README.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published