- Ubuntu 22.04 LTS
- PostgreSQL
- Caddy Proxy
- Install PostgreSQL: https://www.digitalocean.com/community/tutorials/how-to-install-postgresql-on-ubuntu-22-04-quickstart
- Install NodeJS: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-22-04
- Install Directus 9:
npm install directus
- Create new Directus project:
npx directus init
- Add NodeJS start script:
npx directus start
- Setup NodeJS production env with pm2: https://www.digitalocean.com/community/tutorials/how-to-use-pm2-to-setup-a-node-js-production-environment-on-an-ubuntu-vps
- Install Caddy as reverse proxy: https://www.techrepublic.com/article/install-caddy-web-server-ubuntu/
Medium Story: https://medium.com/@samsalabim/cookbook-how-to-install-headless-cms-directus-10-20dae899915b