/micare-dashboard

Primary LanguageTypeScriptGNU Affero General Public License v3.0AGPL-3.0

MICARE DASHBOARD README

This is the Dashboard for the Micare project. It was created using next.js and the T3 stack with PostgreSQL and Keycloak.

Create T3 App

This is a T3 Stack project bootstrapped with create-t3-app.

What's next? How do I make an app with this?

We try to keep this project as simple as possible, so you can start with just the scaffolding we set up for you, and add additional things later when they become necessary.

If you are not familiar with the different technologies used in this project, please refer to the respective docs. If you still are in the wind, please join our Discord and ask for help.

Learn More

To learn more about the T3 Stack, take a look at the following resources:

You can check out the create-t3-app GitHub repository — your feedback and contributions are welcome!

How do I deploy this?

Follow our deployment guides for Vercel, Netlify and Docker for more information.

Dump dp to update keycloak default settings

Access container with postgres user

docker exec -it -u postgres mapseh_postgres bash

Dump db into tmp folder

pg_dump keycloak > /tmp/dump.sql

Copy dump outside of container

docker cp /tmp/dump.sql <output path>

Copy content of dump in multipledb. Remember to preserve \c keycloak command during copy and to not format the file.

Nginx config for production

In nginx.conf add the following

http {
    ...
    fastcgi_buffers 32 32k;
    fastcgi_buffer_size 64k;
    proxy_buffer_size   256k;
    proxy_buffers   4 512k;
    proxy_busy_buffers_size   512k;
}

Keycloak

Remember to add to maps-eh client -> service account role -> assign role -> realm-management/realm-admin