Backend for the project M2Frontend
The main goal of this project is provide a rapid way to implements services for Metin2 PServers.
- Made with python.
- Rapid deployment for development and production
- Easy way to configure donations with paymentwall
- Easy to configurate thanks to yaml format.
- Advanced security
- git
- docker
- docker compose
- make
- Operatin system like Linux (Ubuntu, Centos etc..), Mac OS, Windows 10.
git clone git@github.com:New-Blod-Team/M2-API-REST.git
cd M2-API-REST/
make build
Before starting the project, it is necessary to edit the configuration file and add the necessary parameters for operation. the file is in the following path.
There are two files, one for production and one for development.
Development '.environment/development/.django'
Production '.environment/production/.django'
# Env File For APP
# Database Config
DATABASE_USER=root
DATABASE_PASSWORD=
DATABASE_HOST=
DATABASE_PORT=3306
# Server Config
SERVER_NAME="Metin2 XxX"
SERVER_URL=https://wwww.example.com
SERVER_DOMAIN=example.com
SERVER_TIMEZONE=America/Bogota
SERVER_SECRET=some-secret-please_change
SERVER_LOCALADDR=
# PaymentWall Config
PAYMENTWALL_PUBLIC=
PAYMENTWALL_PRIVATE=
# Email Config
MAIL_HOST=
MAIL_PORT=25
MAIL_PASSWORD=
MAIL_USER=
MAIL_SEND_ACTIVATION=0
# Cors Config
CORS_ORIGIN_ALLOW=
After to this run the startup command.
make run
Nota: the previous command run the project in development environment.
make run-prod
Nota: this command is recomend to run the project in the production envionment