git clone <repo>
.env.example
to .env
npm --prefix strapi install && npm --prefix app install
Run docker-compose up -d postgresDB pgadmin && npm --prefix strapi run develop
This command will run a Postgresql server docker container and then locally run your Strapi Server for your development requirements.
In a new terminal window, run npm --prefix app run dev
This command will run the sveltekit dev server.
Strapi http://localhost:1337
Sveltekit http://localhost:3000
You will reach a point where you will need to test or run the Strapi service in production.
docker-compose up -d
This will spin up both a Postgresql server docker container and a Strapi docker container.
'Name' is database name from .env and 'Host' is postgresDB