Monorepo used for creating https://trialanderror.org
Most important are the three main applications
apps/frontend- the actual Next.js websiteapps/strapi- the Strapi backendapps/blog- the Astro blog
The rest is just a bunch of packages that are used by the two main applications.
The following environment variables are required for the frontend:
NEXT_PUBLIC_STRAPI_URL- the URL of the Strapi backend
To start, you need to have the strapi instance running.
yarn
cd apps/strapi
yarn
yarn developThen you can start the main website in another terminal.
nx serve frontendwhich will open up the website at http://localhost:4200
Or you can start the blog.
nx dev blogwhich will open up the blog at http://localhost:3000
TODO: Figure out a way to seed the database with some initial data without having to manually create it in the admin panel or using the production database.