← Back to docs home
ア キ ラ

Local environment setup

A complete, step-by-step beginner's guide to setting up the Akira project on your computer.

If you want to contribute code to Akira but have never used Node.js or Prisma before, this guide will walk you through the entire process from zero to a running development server.

1. Install prerequisites

Before you can run the project, your computer needs the right software to understand the code. You will need Git (to download the code) and Node.js (which includes npm, the tool that installs our project dependencies).

To install these tools, run the following commands or use the installers for your operating system:

2. Clone the repository

Open your terminal (or Command Prompt/PowerShell) and download the project files using Git:

bash

git clone https://github.com/thepotatogamer0/Akira.git cd Akira

3. Install project dependencies

The project relies on external libraries (like React and Discord.js). npm (Node Package Manager) will read the package.json file and download everything you need.

In the root of the Akira folder, run:

bash

npm install

4. Prepare the database and Discord commands

Copy .env into the repository root and set DISCORD_TOKEN, DISCORD_CLIENT_ID, DISCORD_GUILD_ID, and DISCORD_DROP_CHANNEL_ID. DATABASE_URL can stay file:./prisma/akira.db.

Akira uses Prisma with a local SQLite file. npm run init applies migrations, checks the card art, seeds the catalog, and registers slash commands:

bash

npm run init

5. Start the development servers

Because Akira is a monorepo, it has several moving parts (the Discord bot, the WebUI server, the WebUI client, and the Astro docs site).

Open separate terminal windows for each part of the project you want to work on and run their start commands:

You are now ready to make changes to the code!

See also