This example deploys self-hosted version of Strapi. Internally it uses a PostgreSQL database to store the data.
- Strapi
- Postgres
- Upload images - Locally.
- I don't recommend locally. The reason: https://docs.digitalocean.com/products/app-platform/how-to/store-data/#local-filesystem-ephemeral-files-only
- I recommend using other providers: https://docs.strapi.io/developer-docs/latest/plugins/upload.html
- Click the Digital Ocean button 👆
- Add the environment variables
- Click the Deploy to Render button 👆
- After your app is deployed, visit the
/admin
endpoint to create your admin user. - Digital Ocean App's filesystem is ephemeral which is why any changes to the filesystem are not persisted between deploys. This is why, this example uses Cloudinary for storage.
- You have just to set up the Cloudinary credentials in config/plugins.js and remove the
provider
local in the same file.
- You have just to set up the Cloudinary credentials in config/plugins.js and remove the
- Create
.env
file on the root folder to add the environment variables:APP_KEYS
;API_TOKEN_SALT
;ADMIN_JWT_SECRET
;JWT_SECRET
;- Tip: https://randomkeygen.com/
- Create the
src/admin/app.js
to customize the Admin panel;- For each change do you have to run
yarn build
; - More info here;
- For each change do you have to run
- Local File upload:
@strapi/provider-upload-local
; - Cloudinary upload:
@strapi/provider-upload-cloudinary
; - Documentation:
@strapi/plugin-documentation
; - Flatten API response removing
attributes
anddata
: https://market.strapi.io/plugins/strapi-plugin-transformer;