Before starting the project, make sure you have the following tools installed:
- Node.js (version 18+ recommended)
- NestJS CLI (
npm install -g @nestjs/cli
) - Docker (for PostgreSQL database)
- PostgreSQL (if you don't want to use Docker)
git clone https://github.com/YOUR-USER/citizen-of-arcanis-backend.git
cd citizen-of-arcanis-backend
npm install
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
start npm run: dev
start npm run: dev
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