The project's frontend is deployed and accessible at https://exb-nsk.ru/.
It is the online presence for the local religious organization of Evangelical Christian-Baptist Church in Nevinnomyssk, Russia.
- Frontend: Next.js, React, CSS Modules
- Backend CMS: Strapi + Postgres
- Deployment: Docker + Coolify
- Design: Figma
The project operates in two primary modes, controlled by the NODE_ENV environment variable:
-
NODE_ENV=develop: Development mode.- In this mode, you can not only add content but also modify the content structure (e.g., change models, fields) within the Strapi CMS.
- Supports hot-reloading for backend and frontend.
-
NODE_ENV=prod: Production mode.- In this mode, you are restricted to adding and managing content only. Modifying the content structure is not permitted to ensure stability in a production environment.
- Build is optimized for production.
To set up the project locally, you need to configure your environment variables.
- Locate the
.env.examplefile in the project. - Copy this file and rename the copy to
.env. - Place the
.envfile inside the./dev-configdirectory. This is important as Docker Compose automatically loads.envfiles from the directory containing the primary compose file (docker-compose.yml) when using the-fflag pointing to that directory. - Edit the newly created
.envfile and fill in the required values for your local environment (database credentials, backend URLs, tokens, etc.). Refer to the comments in.env.examplefor guidance.
After configuring the .env file, you can proceed with building and running the project using the commands described below.
To build and run the project, navigate to the ./dev-config directory in your terminal.
Note
For frontend hot-reloading set-up DEV_FRONTEND_SRC_PATH in .env file - path to frontend/src folder on your maschine.
Note
For backend hot-reloading set-up DEV_CMS_SRC_PATH in .env file - path to cms folder on your maschine.
Use the following command from the ./dev-config directory to build and run in development mode.
docker compose -f docker-compose.yml -f docker-compose.dev.override.yml build
docker compose -f docker-compose.yml -f docker-compose.dev.override.yml upUse the following command from the ./dev-config directory to build and run in production mode:
docker compose -f docker-compose.yml up -dThe project's design and design system are available on Figma:
Please see the CONTRIBUTION.md file for details on contribution style, including commit rules and coding standards.