Public repository of my website, in case anyone wants to have a look around. Frontend uses Next.js and backend is build upon Strapi and MongoDB.
Copy .env.example
to .env
and fill in variables.
Run docker-compose up db
.
Run docker-compose up api
. It's also possible to use strapi's development server which is a little faster. Make sure you change DATABASE_HOST
in .env
accordingly (db
if you use docker or localhost
if you use strapi's server).
cd api/strapi
npm install
npm run build
npm run start
cd app
npm install
npm run dev
Note that without configuration most of these steps won't work because you need access to my docker account.
- Build the images by running
make build-all
. - Run
make deploy
to copydocker-compose.prod.yml
and.env-example
to server. - Copy
.env-example
to.env
on server and fill it in. - Run
docker-compose up
on the server.