- run strapi and postgresql with Docker Compose
docker compose -f docker-compose.local.yml up -d
- Copy
.env.example
and rename it to.env
.
cp .env.example .env
- Write environment variables to
.env
. If you want to use the existing DB, please contact the administrators.
example for local env:
# .env
NODE_ENV=development
DATABASE_HOST='localhost'
DATABASE_PORT=5432
DATABASE_NAME='strapi'
DATABASE_USERNAME='strapi'
DATABASE_PASSWORD='strapi'
- Install dependencies.
yarn
- Start Strapi on your local server.
yarn develop
-
Open the local Strapi on your browser and edit the content types etc. The edited result is output to JSON files managed by git.
-
Apply the formatter and commit.
yarn lint
git add .
git commit -am 'Your awesome changes'
- All you have to do is PR!