mirror of
https://github.com/encounter/decomp.dev.git
synced 2026-03-30 11:06:20 -07:00
aeaa175dc63bb404c1dd4c847b2ad761ef2cb285
decomp.dev
Decompilation progress website & GitHub bot.
For more information, see the wiki.
Backend Setup
- Install Rust via rustup:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh - Clone the repository:
git clone https://github.com/encounter/decomp.dev.git cd decomp.dev - Copy
config.example.ymltoconfig.yml:cp config.example.yml config.yml - Create a new GitHub personal access token with scopes
workflow,write:discussion. Set it inconfig.yml:github: token: ghp_abcd1234abcd1234abcd1234abcd1234abcd - Install bacon:
cargo install --locked bacon - Run the backend with automatic rebuild on changes:
bacon
When modifying Rust code, it will take a few seconds to build and restart the server. Once the server updates, the browser page will automatically reload.
Frontend Setup
- Install dependencies:
npm install - Start the frontend development server:
npm start
When the frontend development server is running, changes to files under css/, js/ and assets/ will live reload in the browser.
Testing
When running both the backend and frontend, the site will be accessible at http://localhost:3000.
By default, server.dev_mode in config.yml is enabled, allowing any visitor to log in as a superuser without authentication.
To add projects to the site, visit http://localhost:3000/manage/new, using an existing project from decomp.dev as reference:
Description
Languages
Rust
84.8%
TypeScript
11.8%
SCSS
3.3%
