Getting Started
If you are new to Strapi. I will suggest you start from offical strapi documentation
If you want to start from this project. You should have a local mongodb server or docker installed. Otherwise you will need to edit the database configuration in strapi/config/database.ts.
Development
For first time to clone the project run
yarn install
yarn build
then, to start development
yarn dev
Docker
start development using docker
docker compose up
docker compose up docs # only start documentationIf dependencies in
package.jsonchangeddocker compose up --build -V dev # only rebuild strapi instance
docker compose up --build -V # rebuild all containerflag
-Vrecreate anonymous volumes instead of retrieving data from the previous containers. So you may need to prune the unused volumes after rebuilddocker volume pruneBuild the docker image for production
yarn docker buildRun the docker image with a shell script. You could edit/check the file for debugging
yarn docker shStart the docker image
yarn docker run # ...args
yarn docker run --env-file ./strapi/.env