Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.23 KB

README.md

File metadata and controls

40 lines (27 loc) · 1.23 KB

Craftnet

Craftnet is the Craft project that powers various services for Craft CMS, including id.craftcms.com, plugins.craftcms.com, and the Craftnet API.

It is not meant to be self-installable. We’ve published it to a public repo for the issue tracking and because we hope some aspects of the code will serve as helpful examples for other advanced Craft projects.

Development

Local Development with DDEV

Prerequisites

  • Install DDEV
  • A database backup, placed in ./storage/backups/craftnet.dump

Setup

cp .env.example .env
ddev start
ddev composer install
ddev exec php craft setup/security-key
ddev exec pg_restore --dbname=db --single-transaction --no-owner < storage/backups/craftnet.dump

Examples

# View URLs and other relevant info
ddev describe

# Run craft CLI commands
ddev exec php craft

# Login to the CP
open https://id.craftnet.ddev.site/negroni