buraste/strapi-nextjs-docker-boilerplate(opens in a new tab)
Language: JavaScript
🎨 Boilerplate for building Dockerized 🐳 applications using Strapi v4 + Next.js + Postgres +Nginx
- stars
- 86
- watchers
- 2
- forks
- 23
- open issues
- 3
- Last updated
- 04/24/2024
Language: JavaScript
🎨 Boilerplate for building Dockerized 🐳 applications using Strapi v4 + Next.js + Postgres +Nginx
This package is currently under development and should be consider BETA in terms of state. We are currently accepting contributions to help develop and maintain this package.
For more information on contributing please see the contrib message below.
You have to currently exist Docker and Docker Compose on your system:
.env.example file to .envENVIRONMENT=development on .env fileENVIRONMENT=productionlocalhost:80 is accesible and not using from another process (Nginx runs on 80)docker-compose pull
docker-compose build && docker-compose up -dhttp://localhost and Strapi backend (admin) on http://localhost/strapi/adminContent-Type Builder, It has sample content type as Article and this content type has three field as title body and cover.Article, go to Content Managerand click Articleon left pane, click Create new entryand fill the blanks > click Publish!Article so
Settings>User & Permissions Plugin>Roles>Public>Articleand select find findOne, If you need more, select what you want and save!http://localhost/strapi/api/articlesSecure all your Strapi related endpoints in Nginx, make sure to use API tokens to connect to the backend and keep this information private. The Nginx config that on the repo is for development, not production ⛔️
We are always welcome for contributions to help shape this package.
If interested please feel free to email the maintainer Burak at: hello@buraste.com
See the LICENSE file for licensing information.