Skip to content

monologid/mon-stack

Repository files navigation

mon-stack

A mono-repo project using Strapi and NextJS.

Pre-requisite

Please make sure that you have Docker engine and NodeJS LTS version installed.

Getting Started

Setup environment

Run the docker compose file.

docker compose up -d

Make sure that MySQL and Redis have been running properly.

Install dependencies

mon-stack-backend

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
For first-time setup only

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.

mon-stack-frontend

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

Run application servers

Please open 2 terminals as you will run the backend server and frontend app.

mon-stack-backend

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

mon-stack-frontend

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

Authors

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published