Setup
-
Install and setup:
node,redis,mysql. -
Clone the repository and install dependencies.
git clone https://github.com/cryptichunt/platform cryptocracy-platform cd cryptocracy-platform/backend npm i cd ../frontend npm i
- Copy and populate config files
cd ../backend
cp .env.example .env
cp config/config.example.json config/config.json- Create a database and run migrations on it
MYSQL_URL=<your_mysql_url> prisma migrate up node seed/run all
- Start a redis server and check if it's running
redis-server --daemonize yes
ps aux | grep redis-server- Run the app
npm run serve:dev # In another shell cd ../frontend && npm run start