Plataforma de análise de discursos de personalidades públicas e combate a Fake News.
Fork this repo and clone it locally:
git clone https://github.com/AletheiaFact/aletheia
cd aletheia
Startup Mongo DB via Docker and Ory Kratos:
docker-compose up -d
Install packages:
yarn install
To run in dev mode
yarn dev
Access http://localhost:3000 in your browser.
If you want to run FerretDB locally, use the follow script:
docker compose up ferretdb postgres-documentdb
Then change the MongoDB connection string in your config.yaml with:
db:
connection_uri: mongodb://ferretdb:ferretdb@localhost:27018
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
Run seeder:
yarn seed
Run the command below to update the users' affiliations:
./node_modules/.bin/ts-node ./server/scripts/updateAllUsersAppAffiliation.ts
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:
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 and on
ORY_ACCESS_TOKEN=
in your .env too.schema_id
and on ALETHEIA_SCHEMA_ID=
in .env.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 hereAPI 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