gobeam / truthy

Open source headless CMS API written using NestJS, that has pre built modules like User Management, Role Management, Permission Management, Email Module, Account Settings, OTP, Throttling, RBAC support, Localization, and many more.
MIT License
498 stars 89 forks source link

Please update documentation #21

Closed duylddev closed 1 year ago

duylddev commented 1 year ago

We want to use Truthy for a simple project (crud), so I clone it to my local machine to test.

After running commands migrate/seed. Go to login screen, login and got relation user not found => need to set synchronize: true

login => wrong password (might be not Truthy@123 with jwt secret = example@123) => Register to manually set admin => got QueryFailedError: null value in column "address" of relation "user" violates not-null constraint.

I really like this project and want to apply it to my company project but it seems lack of documentation and has some bugs. It's not about login/register bug I've got, it's about I don't feel safe applying Truthy to my company production project

Thanks,

image image image

gobeam commented 1 year ago

@duylddev I think you made some mistake on the configuration, you need to add your database name in the key "database" inside "db" in your config file determined by the NODE_ENV you set like if you pass NODE_ENV as "development" it will give first priority to development.yml and if nothing is found it defaults back to default.yml. Right now I'm caught up with work but I will make sure to add proper documentation when I'm free. Thanks for your valuable suggestion.