Plataforma de análise de discursos de personalidades públicas e combate a Fake News.
git clone https://github.com/<your-username>/aletheia
cd aletheia
docker-compose up -d
yarn install
yarn dev
TBD
The Platform requires a configuration file that can be used to customize aspects of the site depending on your needs.
cp config/localConfig.example.ts config/localConfig.ts
yarn seed
yarn build
Execute the following command to start Ory Kratos using Docker Compose:
docker-compose up kratos kratos-migrate
You can also use the self-service-ui-node and maisluper images to have a better experience debugging Ory.
After starting the service, you can verify that it's running by accessing the admin panel:
404 page not found
message, which indicates that the server is running but the requested endpoint does not exist.Configuring YAML Files
Copy the Ory configurations from config.example.yaml
to your config.yaml
and config.seed.yaml
:
url
, admin_url
, admin_endpoint
, and schema_id
with the appropriate values based on your setup in config.example.yaml
.Configuring Environment Variables
Copy the Ory configurations from .env.example
to your .env
file:
NEXT_PUBLIC_ORY_SDK_URL
and ORY_SDK_URL
variables as specified in the .env.example
file.Run the following command to seed the database with initial data:
yarn seed
Check if users were created successfully by accessing the identities page:
{
"$id": "https://schemas.ory.sh/presets/kratos/identity.email.schema.json",
"title": "Person",
"type": "object",
"properties": {
"traits": {
"type": "object",
"properties": {
"email": {
"type": "string",
"format": "email",
"title": "E-Mail",
"ory.sh/kratos": {
"credentials": {
"password": {
"identifier": true
},
"webauthn": {
"identifier": true
},
"totp": {
"account_name": true
}
},
"recovery": {
"via": "email"
},
"verification": {
"via": "email"
}
},
"maxLength": 320
},
"user_id": {
"type": "string"
},
"role": {
"type": "object"
}
},
"required": [
"email",
"user_id"
],
"additionalProperties": false
}
}
}
authentication_type:
to ory on your config.yaml and config.seed.yaml.url:
in both pages config.yaml, config.seed.yaml and on ORY_SDK_URL=
in your .env too. access_token:
in your config.yaml and config.seed.yaml.schema_id:
.connection_uri
with your MongoDB atlas connection URI in config.yamlconnection_uri
add atlas
field with a true booleanapi url
, instance id
and appName
appName
that should be inserted is: Local, you must pay attention to the capital letter which makes a difference here API URL
: URL where the client (application) connects to get a list of feature flags.Instance ID
: Unique token that authorizes the retrieval of the feature flags.Application name
: The name of the environment the application runs in (not the name of the application itself).docker-compose up -d localstack # Run in detached mode
docker-compose exec localstack awslocal s3 mb s3://aletheia