Run Badge Box Locally
Want to run Badge Box on your own computer? Follow this guide to set up everything locally. No advanced technical skills required — just follow step by step.
Prerequisites
Before you start, make sure you have these installed on your computer:
- Python 3.10 or higher — Download Python
- Node.js 18 or higher — Download Node.js
- A Nostr private key (nsec) OR a browser extension like Alby or nos2x
Not sure if you have these installed?
Open your terminal (Command Prompt on Windows, Terminal on Mac/Linux) and type:
python --version
node --versionIf you see version numbers, you're good to go!
Step 1: Get the Code
First, download the Badge Box code to your computer.
All commands below should be typed in your terminal. On Mac, search for "Terminal". On Windows, search for "Command Prompt" or "PowerShell".
git clone https://github.com/rinbal/Badges_GUI.git
cd Badges_GUIDon't have Git?
You can also download the ZIP file from GitHub and extract it.
Step 2: Install the Backend
The backend is the server that handles all the badge logic.
cd backend
pip install -r requirements.txt
pip install -r ../requirements.txtWhat does this do?
pip install downloads and installs all the Python packages that Badge Box needs to run. The -r requirements.txt tells it to read the list of packages from a file.
Step 3: Install the Frontend
The frontend is what you see in your browser.
cd ../frontend
npm installWhat does this do?
npm install downloads all the JavaScript packages needed for the user interface. This might take a minute or two.
Step 4: Start the Servers
You need to run two servers at the same time. This means opening two terminal windows.
Terminal 1: Start the Backend
cd backend
uvicorn app.main:app --reload --port 8000You should see output like:
INFO: Uvicorn running on http://127.0.0.1:8000
INFO: Started reloader processTerminal 2: Start the Frontend
Open a new terminal window and run:
cd frontend
npm run devYou should see output like:
VITE v5.x.x ready
➜ Local: http://localhost:5173/Step 5: Open Badge Box
Open your web browser and go to:
http://localhost:5173
That's it! Badge Box is now running on your computer.
Stopping the Servers
To stop the servers, go to each terminal window and press Ctrl + C (or Cmd + C on Mac).
Troubleshooting
Port Already in Use
Another app is using port 8000 or 5173. Close other servers or change the port number.
Command Not Found
Python or Node.js isn't installed. Download them from the links above.
Need more help?
Check out the Troubleshooting Guide or open an issue on GitHub.
