Coder Social home page Coder Social logo

cbiniamow / rollup-explorer-backend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scroll-tech/rollup-explorer-backend

0.0 0.0 0.0 410 KB

Scroll's Rollup Explorer Backend

License: MIT License

Shell 3.84% Rust 85.90% Makefile 1.00% PLpgSQL 7.42% Dockerfile 1.85%

rollup-explorer-backend's Introduction

Scroll's Rollup Explorer Backend

Main Test Status Audit Status Rust Nightly

Purpose

This repo contains the backend code for the Rollup Explorer that's currently being maintained by Scroll.

License

MIT.

Contributing

If you encounter bugs or have feature ideas, feel free to create an issue or write a PR.

Prerequisites

Naturally, you will need the Rust toolchain installed. Besides that, goose is necessary for external database migrations in database dictionary of scroll.

ENV

  • BIND_PORT: Internal binding HTTP port (5001 as default).
  • DB_URL: The database URL used to connect.
  • OPEN_API_ADDR: Open API URL displayed on Web UI.
  • MAX_PER_PAGE: Max value of query parameter per_page (100 as default)

Development

  • make start: Start a local Postgres docker-container, and cargo run --bin rollup_explorer. Then URL http://0.0.0.0:5001 could be accessed in a Web browser.

  • make stop: Stop running rollup_explorer processes and Postgres docker-container. The Postgres data should also be cleared via deleting folder docker-data.

  • make lint: Format and lint codes.

  • make shfmt: Format Shell scripts.

Adding Mock Data

Run the following:

psql postgres://postgres:scroll2022@localhost:5434/scroll -f db/tests/test.sql

Deployment

Currently deployed by Scroll's devops and used by https://scroll.io/alpha/rollupscan.

rollup-explorer-backend's People

Contributors

silathdiir avatar dependabot[bot] avatar haoyuathz avatar orestta avatar zzq0826 avatar nazariidenha avatar mask-pp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.