Installation
Set up your development environment and get AuroraMC running locally.
Installation
Follow these steps to get your AuroraMC store running on your local machine.
Prerequisites
Make sure you have the following before starting:
- Node.js 18 or later — Download here. LTS version is recommended.
- npm — Comes bundled with Node.js. Run
node -vandnpm -vto verify both are installed. - A Tebex account — Sign up at tebex.io and create a webstore if you haven't already.
Step 1 — Install Dependencies
Open a terminal, navigate to the project folder, and install packages:
cd AuroraMC-main
npm installThis installs React, Vite, Tailwind CSS, Radix UI, Framer Motion, and all other dependencies defined in package.json.
Step 2 — Configure Environment Variables
Create a .env file in the project root (or rename the existing .env file). You only need one variable:
VITE_TEBEX_PUBLIC_TOKEN=your_tebex_public_token_hereWhere to Find Your Token
- Log in to your Tebex Dashboard
- Navigate to Settings → API Keys
- Under Headless API, click Enable if it isn't already active
- Copy the Public Token and paste it into your
.envfile
[!IMPORTANT] The public token is the only credential required. AuroraMC uses the Tebex Headless API which operates entirely from the browser — no secret keys are stored in your code.
Step 3 — Start the Development Server
Run the dev server to preview your store locally:
npm run devVite will start and show a local URL in the terminal, typically:
Local: http://localhost:5173/Open that URL in your browser. Changes you make to the code will hot-reload instantly.
Step 4 — Build for Production
When you're ready to deploy, create a production build:
npm run buildThis generates a dist/ folder containing optimized static HTML, CSS, and JavaScript files. See the Deployment Guide for hosting instructions.
Other Commands
| Command | Description |
|---|---|
npm run dev | Start the local development server with hot reload |
npm run build | Create an optimized production build in dist/ |
npm run preview | Preview the production build locally |
npm run lint | Run ESLint to check for code issues |
npm run test | Run the test suite with Vitest |
Troubleshooting
npm install Fails or Hangs
Delete node_modules and the lock file, then reinstall:
rm -rf node_modules package-lock.json
npm installOn Windows, use rmdir /s /q node_modules or just delete the folder manually.
"Tebex public token is not configured" Error
This means the .env file is missing or VITE_TEBEX_PUBLIC_TOKEN is not set. Double-check that:
- The
.envfile exists in the project root (same level aspackage.json) - The variable name is spelled exactly as
VITE_TEBEX_PUBLIC_TOKEN - You restarted the dev server after editing
.env— Vite only reads env files on startup
Store Loads But Products Show Errors
Verify that your Tebex Headless API is enabled and the token is correct. Log in to your Tebex dashboard and check under Settings → API Keys.
Port 5173 Is Already in Use
Another process is using that port. Either stop the other process, or start Vite on a different port:
npm run dev -- --port 3000