GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Developer-DAO/rpc

BranchesTags
Open more actions menu

Latest commit

 

History

217 Commits
217 Commits

Folders and files

NameName
Last commit message
Last commit date
.cargo
.cargo
 
 
.github/workflows
.github/workflows
 
 
.sqlx
.sqlx
 
 
benches
benches
 
 
infra
infra
 
 
migrations
migrations
 
 
src
src
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
.vimspector.json
.vimspector.json
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
Dockerfile
Dockerfile
 
 
Dockerfile.dev
Dockerfile.dev
 
 
README.md
README.md
 
 
cleandb.sh
cleandb.sh
 
 
docker-compose.yml
docker-compose.yml
 
 
innitdb.sh
innitdb.sh
 
 

Repository files navigation

How to Run

This server requires a few things set up in order to properly run it.

Postgres

Install Postgres:

MacOs: brew install postgresql@18

Linux: sudo apt-get -y install postgresql-18

Windows: Download the installer

Optional: Install PgAdmin

Rust Compiler

Install Rust compiler:

Linux / Mac: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Windows: Download the installer

Set Up

  • Create database locally using PgAdmin or Postgres on the CLI

  • run cargo install sqlx-cli

  • cd into the project's root

  • create .env file

  • The following fields should be added:

    1. DATABASE_URL
    2. SMTP_USERNAME
    3. SMTP_PASSWORD
    4. ETHEREUM_ENDPOINT
    5. JWT_KEY
  • Create connection string from DB details and add to .env as the value of DATABASE_URL. Example: postgres://username:password@localhost:5432/databasename

  • run sqlx database create

  • run sqlx migrate run

  • run cargo test routes::login::tests::get_key -- --show-output to generate a JWT key, and the output as value of JWT_KEY in .env

  • add an email address for SMTP_USERNAME (it is probably best to make a new one or a temp)

  • add a password to that email for SMTP_PASSWORD

  • add a URL to any Ethereum JSON-RPC endpoint (local or otherwise) for ETHEREUM_ENDPOINT

Start the Server

Once the database is set up and all the values are added to .env, you can start the server with cargo run --release.

To run auth with a localhost SIWE domain && use any contract with the payment processor for testing, run cargo run --release --features dev.

About

No description, website, or topics provided.

Resources

Readme

Code of conduct

Code of conduct
Activity
Custom properties

Stars

13 stars

Watchers

0 watching

Forks

4 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.