Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/docs #27

Merged
merged 6 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 27 additions & 55 deletions .env.dist
Original file line number Diff line number Diff line change
@@ -1,70 +1,42 @@
########################################################################################################################
# Environment Variables

# APP_DEBUG=1
# APP_DEBUG_COOKIE_SECRET=value

# COOKIE_SECURE=1 # True for sending secure flag (https)
# PROJECT_URL=https://www.example.com
# PROJECT_INTERNAL_URL=https://www.example.com # Not required, the PROJECT_URL is used if this variable is not defined
# PROJECT_API_URL=https://amp-api.example.com # Not required, the PROJECT_URL is used if this variable is not defined
# TRUSTED_PROXIES=127.0.0.1 # Not required, IP or IPs separated by a comma. The range you can enter like 1.0.0.0/1
# [email protected]
# [email protected]
# MAILER_FROM="Consent Management Platform"

# RECAPTCHA_ENABLED=1
# GOOGLE_RECAPTCHA_SITE_KEY=site-key
# GOOGLE_RECAPTCHA_SECRET_KEY=secret-key

# DB_HOST=server
# DB_PORT=port
# DB_NAME=dbname
# DB_USER=user
# DB_PASSWORD=password

# REDIS_HOST=server
# REDIS_PORT=port
# REDIS_AUTH="" # optional
# REDIS_DB_CACHE=0 # optional
# REDIS_DB_SESSIONS=1 # optional

# SMTP_ENABLED=1
# SMTP_HOST=hostname
# SMTP_PORT=port
# SMTP_USERNAME=username
# SMTP_PASSWORD=password
# SMTP_SECURE=ssl # ssl or tls

# SENTRY_DSN=https://[email protected]/project-id
# GTM_CONTAINER_ID=GTM-XXXXXX # optional
# API_DOCS_ENABLED=1 # optional
# GRID_COUNT_LIMIT=100000 # optional
########################################################################################################################

# ========== Application environment ========== #
APP_DEBUG=1
APP_DEBUG_COOKIE_SECRET=idontgiveabuck07

COOKIE_SECURE=0
APP_DEBUG_COOKIE_SECRET=hey_tracy
PROJECT_URL=http://localhost:8888
PROJECT_INTERNAL_URL=http://localhost:8080
[email protected]
[email protected]
MAILER_FROM="Consent Management Platform"

RECAPTCHA_ENABLED=0
# TRUSTED_PROXIES=127.0.0.1 # Not required, IP or IPs separated by a comma. The range you can enter like 1.0.0.0/1
COOKIE_SECURE=0
# COOKIE_SECURE=1 # For sending secure flag (https)
API_DOCS_ENABLED=1
GRID_COUNT_LIMIT=100000
# GTM_CONTAINER_ID=GTM-XXXXXX # optional

# ========== PostgreSQL database ========== #
DB_HOST=db
DB_PORT=5432
DB_NAME=cmp
DB_USER=root
DB_PASSWORD=root

# ========== Redis / KeyDB ========== #
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_AUTH=redis_pass
REDIS_DB_CACHE=0
REDIS_DB_SESSIONS=1

SENTRY_DSN=https://[email protected]/123
API_DOCS_ENABLED=1
# ========== Emails & SMTP server ========== #
[email protected]
MAILER_FROM="Consent Management Platform"
# SMTP_ENABLED=1
# SMTP_HOST=hostname
# SMTP_PORT=port
# SMTP_USERNAME=username
# SMTP_PASSWORD=password
# SMTP_SECURE=ssl # ssl or tls

# ========== Google reCAPTCHA ========== #
RECAPTCHA_ENABLED=0
# GOOGLE_RECAPTCHA_SITE_KEY=site-key
# GOOGLE_RECAPTCHA_SECRET_KEY=secret-key

# ===== Sentry logger ===== #
#SENTRY_DSN=https://[email protected]/123
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- Added optional ENV variables `REDIS_DB_CACHE` (default `0`) and `REDIS_DB_SESSIONS` (default `1`).
- Added the `Development Guide` and `Product Documentation`.

### Changed

- Updated the README.

## 0.12.0 - 2023-02-27

Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ down:

restart:
make stop
make stop-worker
make start
make data-migration
make start-worker

cache:
docker exec -it cmp-app bin/console
Expand Down Expand Up @@ -95,6 +96,7 @@ init:
make start
make install
make data
make start-worker

data:
make data-migration
Expand Down
35 changes: 16 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Consent Management Platform
<div align="center" style="text-align: center; margin-bottom: 50px">
<img src="docs/images/logo.svg" alt="Consent Management Platform logo" align="center" width="150">
<h1 align="center">Consent Management Platform</h1>

> 🛡 Manage user consents and cookie widget with easy.
🛡 Easily manage user consents and the cookie widget.
</div>

<br>

tg666 marked this conversation as resolved.
Show resolved Hide resolved
## Table of Contents
* [About CMP](#about-cmp)
Expand All @@ -9,10 +14,12 @@
* [Installation](#installation)
* [Product Documentation](#product-documentation)
* [Development Guide](#development-guide)
* [Known Issues](#known-issues)

## About CMP
...

The CMP is a standalone application for storing user's cookie consents and managing the cookies themselves on any website or application.

![CMP Application](docs/images/dashboard.png)

## Getting Started

Expand All @@ -22,30 +29,20 @@

### Installation
```sh
$ git clone <repository-url> cmp
$ git clone https://github.com/68publishers/consent-management-platform cmp
$ cd cmp
$ cp .env.dist .env
$ make init
```

Visit http://localhost:8888 and sign in via `[email protected]` / `admin` credentials.

See [Makefile](./Makefile) for other usefull commands.
See [Makefile](./Makefile) for other useful commands and the [Development Guide](docs/development.md) for information about ENV variables etc.

## Product Documentation
...

## Development Guide
...
For documentation of the application from a user perspective, please go to the [Product Documentation](docs/product.md).

## Known issues
When running application stack locally and get the following message:
```sh
An exception occurred in the driver:
SQLSTATE[08006] [7] could not translate host name "cmp-db" to address: Name does not resolve
```
## Development Guide

Simply restart the `db` service manualy:
```sh
$ docker compose restart db
```
For more technical information, please go to the [Development Guide](docs/development.md).
2 changes: 1 addition & 1 deletion config/packages/contributte.monolog.neon
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
autowired: no
type: Sentry\Client
factory: Sentry\ClientBuilder::create([
dsn: ::env(SENTRY_DSN)
dsn: ::env(SENTRY_DSN, '')
max_request_body_size: always
])::getClient()

Expand Down
Loading
Loading