Skip to content

sehyunc/ptolemy

 
 

Repository files navigation

Speedway

Shows 'Welcome to Sonr' in white on a dark background.
🔱 🐬 :godmode: 🔱
A easy-to-use framework for building immersive decentralized applications.

The quickest way to production in Web5. Built with ❤︎ by the Sonr Team and contributors

Requirements

  • have Taskfile installed
  • have npm installed
  • have the Go programming language installed

Running Speedway UI

Install all the front end dependencies

npm install

Build the frontend

npm run build

Serve the backend

task server:start:release

Open your Browser to localhost:4040


Running Speedway CLI

Manual Build

Build the Speedway CLI

    go build -o bin/speedway

Move the Speedway CLI to your path

    mv bin/speedway /usr/local/bin/speedway

With Taskfile

    task build:cli

With Build Script

    ./build.sh

Run the help command

./speedway help

Known Issues

Speedway UI: Cannot use types other than string in objects or it casues issues with validation Workaround: Use strings for all datatypes
Workaround: Use the cli
Workaround: Use the --file <file> flag on the CLI commands
The server sometimes fails due to `Concurrent Map Writes` Workaround: Restart the server and repeat the action

Contributing

Building For Backend Dev To build for dev, run `task server:start:debug` instead of `task server:start:release`
Running the Mock Backend

Running the UI: Mock Server Mode

This mode is ideal for UI development. Changes to the code will reflect on the browser automatically and there is no need to build. Any data generated will be local only. Behavior may not perfectly match the Sonr Speedway Backend.

Run the Frontend:

npm install
npm start

on a second terminal, run the development server:

cd server-in-memory
npm install
npm start

The UI should open automatically on your browser, but if that's not the case, it can be found under localhost:3000

to reset the local data, go to:

localhost:3001/reset

About

CLI and Web UI to build Sonr powered DApps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 51.7%
  • Go 35.1%
  • JavaScript 9.2%
  • CSS 2.9%
  • HTML 0.5%
  • Ruby 0.4%
  • Other 0.2%