You've already forked decomp.dev
mirror of
https://github.com/encounter/decomp.dev.git
synced 2026-03-30 11:06:20 -07:00
1.8 KiB
1.8 KiB
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 scope
public_repo. 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:
