Skip to content

fairhopeweb/dev-for-apps

 
 

Repository files navigation

Strapi application for Dev Apps

How to development

with Docker Compose

  1. run strapi and postgresql with Docker Compose
docker compose -f docker-compose.local.yml up -d

run strapi standalone

  1. Copy .env.example and rename it to .env.
cp .env.example .env
  1. 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'
  1. Install dependencies.
yarn
  1. Start Strapi on your local server.
yarn develop

change schema and more change settings

  1. Open the local Strapi on your browser and edit the content types etc. The edited result is output to JSON files managed by git.

  2. Apply the formatter and commit.

yarn lint
git add .
git commit -am 'Your awesome changes'
  1. All you have to do is PR!

About

🔩RESTful API for Apps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.4%
  • Dockerfile 4.6%
  • Shell 2.0%