evoxmusic / blog-strapi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Strapi + Next.js Blog Demo Application

This is a demo application for DigitalOcean's App Platform. It is the foundation for a blog built with Strapi and Next.js.

This is the backend repo for creating the Strapi API. The overall structure of the demo application is:

  • Strapi: Backend API (Repo)
  • Next.js: Frontend (Repo)

Instructions to Deploy to App Platform

Deploy to DO

You can use the Deploy to DigitalOcean button to deploy this repo directly to App Platform.

Important Notes on Deployment

  • Make sure you have all your environment variables in place
  • Add a dev database when deploying
  • Set HTTP Route to /api
  • Add the Next.js repo after deploying the Strapi App: https://github.com/do-community/blog-next

Strapi Setup

  1. Create an admin account
  2. Add custom types
  3. Configure roles and permissions for new custom types

Environment Variables

The following environment variables are required:

Name Value
STRAPI_URL ${APP_URL}/api
NODE_ENV "production"
DATABASE_URL ${db.DATABASE_URL}
DATABASE_HOST ${db.HOSTNAME}
DATABASE_PORT ${db.PORT}
DATABASE_NAME ${db.DATABASE}
DATABASE_USERNAME ${db.USERNAME}
DATABASE_PASSWORD ${db.PASSWORD}

About


Languages

Language:JavaScript 98.7%Language:Shell 1.3%