Title here
Summary here
Before installing the Platfone NodeJS Backend, follow these steps to set up your MySQL (MariaDB) database.
Install a MySQL-compatible database server (MySQL 5.7+ or MariaDB 10+). Refer to your vendor documentation for platform-specific instructions.
Log in to your database:
mysql -u root -pThen run the following SQL statements (adjust names and credentials as needed):
CREATE DATABASE platfone;
CREATE USER 'platfone_user'@'%' IDENTIFIED BY 'secure_password';
GRANT ALL PRIVILEGES ON platfone.* TO 'platfone_user'@'%';
FLUSH PRIVILEGES;The database schema for the Platfone NodeJS Backend is managed via migrations. To apply the schema, run the following from the repository root:
npm install
npm run build
# Copy environment template and update values
cp .env.example .env
# Edit .env with your API key, database connection, and payment gateway settings
# Run database migrations
npm run migrate