Skip to content

SunsetLabs-Game/COA-Backend

Repository files navigation

Citizen of Arcanis Backend

📌 Prerequisites

Before starting the project, make sure you have the following tools installed:


🚀Installation

1️⃣ Clone the repository

git clone https://github.com/YOUR-USER/citizen-of-arcanis-backend.git
cd citizen-of-arcanis-backend

2️⃣ Install dependencies

npm install

3️⃣ Setup the environment

Create a .env file in the root of the project with the following content:

PORT=3000
DB_HOST=localhost
DB_PORT=5432
DB_USER=postgres
DB_PASS=password
DB_NAME=coa_database
JWT_SECRET=supersecret key

If you use Docker, simply run:

docker-compose -d

4️⃣ Run the server

start npm run: dev
start npm run: dev

📖 Project structure

citizen-of-arcanis-backend/
│── src/
│ ├── modules/
│ │ ├── auth/ # Authentication module (JWT)
│ │ ├── users/ # User management
│ │ ├── Marketplace/ # NFT management and economy
│ │ ├── game/ # Unity synchronization
│ ├── common/ # Utilities and middlewares
│ ├── main.ts # Entry point
│── .env # Variables environment
│── package.json # dependencies
│── tsconfig.json # TypeScript configuration
│── docker-compose.yml # Database and deployment

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published