-
Notifications
You must be signed in to change notification settings - Fork 10
Development Setup & Installation
- Redis
- MySQL
- NodeJs
- PNPM
Clone the repository
git clone https://github.com/RxCP/rxcpInstall dependencies via pnpm (recommended)
cd rxcp && pnpm iThe next thing we need to do is setup our API server.
At the root of the project cd to /apps/api
cd apps/apiCopy .env.example to .env
Create 1 database for your rxcp. This DB will be for the rxcp itself.
Don't know how to create a database? Click here
⚠️ Ragnarok database is required, If you don't have one kindly look at theexamplefolder.
Update your database credentials in .env
// /apps/api/.env
MYSQL_HOST=localhost
MYSQL_PORT=3306
MYSQL_USER=root
MYSQL_PASSWORD=root
MYSQL_DB_NAME=rxcp
RAGNAROK_HOST=localhost
RAGNAROK_PORT=3306
RAGNAROK_USER=root
RAGNAROK_PASSWORD=root
RAGNAROK_DB_NAME=ragnarok
After we're done changing the variables It's time to run the migration (Still at the /apps/api).
node ace migration:runThen to add sample data run:
node ace db:seed👍 That's It for the API setup.
📝 See Sample Data credentials here.
At the root of the project cd to /apps/admin then copy .env.example to .env
Running on development mode. This will run the api and admin.
pnpm dev- API - http://127.0.0.1:3001
- Admin Dashboard - http://127.0.0.1:3000