A mono-repo project using Strapi and NextJS.
Please make sure that you have Docker engine and NodeJS LTS version installed.
Run the docker compose file.
docker compose up -d
Make sure that MySQL and Redis have been running properly.
Before installing dependencies, please install the latest version of yarn & pnpm.
npm install --global yarn pnpm
Now install the dependencies for mon-stack-backend:
pnpm backend install:yarn
You need to setup an administrator account.
Open your browser and access http://localhost:1337/admin
.
Fulfill all the required fields to create new administrator account.
Once you are done, now you need to whitelist the existings APIs.
In the sidebar, click Settings
. Under the Users & Permissions Plugin
, click the Roles
menu.
Click the Authenticated
role. And enable all related to Cortex.
Before installing dependencies, please install the latest version of yarn & pnpm.
npm install --global yarn pnpm
Now install the dependencies for mon-stack-frontend:
pnpm frontend install
Please open 2 terminals as you will run the backend server and frontend app.
To run the server, please make sure that you have configured .env
file.
Go to the packages/mon-stack-backend
folder and copy the .env.example
file.
cd ./packages/mon-stack-backend
cp .env.example .env
Then configure each environment variables.
Start the backend server using following command.
cd ./packages/mon-stack-backend
yarn dev
To run the server, please make sure that you have configured .env
file.
Go to the packages/mon-stack-frontend
folder and copy the .env.example
file.
cd ./packages/mon-stack-frontend
cp .env.example .env
Then configure each environment variables.
Start the frontend server using following command.
cd ./packages/mon-stack-frontend
pnpm dev