GithubHelp home page GithubHelp logo

gobeam / truthy Goto Github PK

View Code? Open in Web Editor NEW
446.0 446.0 80.0 959 KB

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.

Home Page: http://157.245.148.131:3000

License: MIT License

JavaScript 0.93% TypeScript 96.27% Dockerfile 0.17% Pug 1.34% CSS 1.16% Shell 0.12% Procfile 0.01%
api api-rest awesome-nestjs-boilerplate boilerplate cms demo headless-cms nestjs nestjs-api nestjs-api-starter nestjs-backend nestjs-boilerplate nestjs-demo nodejs postgresql rbac-authorization realworld-backend throttle-requests typescript user-role-permission

truthy's Introduction

Hey there! I'm Roshan Ranabhat (gobeam)

About Me

A full-stack web developer who specializes in stacks like GOLANG, Node.js, Reactjs & Redux, Vue.js, and PHP. I am also a Blockchain enthusiast and have worked on both Ethereum and Bitcoin Blockchain networks for developing smart contracts, crypto trades web apps, and services.

🛠  Tech Stack

  • 💻   Go Node.js PHP
  • 🔗   Blockchain Solidity
  • 🌐   React Redux Vue.js HTML5 CSS JavaScript Bootstrap
  • 🛢   MySQL MongoDB PostgreSQL
  • ⚙️   Git Docker

🤝🏻  Connect with Me

truthy's People

Contributors

gobeam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

truthy's Issues

Bug PostSQL

hi, I have an error with the database, QueryFailedError: NULL value violates NOT NULL constraint of column "address" in relation "user"
thank you

First issue

This is first issue
How to generate:
Expected

Add a json data field that can be used to update any sort of meta data

Is your feature request related to a problem? Please describe.
Looking at whats out there now, it will be very useful to have another column that would be a json field where we can store details like user tenancy data or external details that fall outside the context of authentication.

Example of such a thing was I wanted to some user data that would be available using the /profile api like external API keys.

env variable not being called in ormconfig.ts

In ormconfig.ts, env variables are returned as undefined. While debugging, I found that ormconfig.ts executes before app.module.ts, hence ormconfig.ts doesn't have an idea about process.env.

How did I fix it?

  1. Installed @nestjs/config
  2. In ormconfig.ts,
import { ConfigModule } from '@nestjs/config';
ConfigModule.forRoot();

Ability to assign multiple roles to a user

Is your feature request related to a problem? Please describe.
It would be nice to be able to assign multiple roles to a user.
For example role 1 has x permissions, and role 2 has y permissions.
It would be nice to not have to create a third role with x and y permissions to cover both roles.

Please update documentation

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

seed doesn't working

Describe the bug
I get the following error when running npm run seed

✖ Could not import seeders!
Error: Cannot find module 'src/config/email-template-data'
Require stack:

  • /usr/src/app/src/database/seeds/create-email-template.seed.ts
  • /usr/src/app/node_modules/typeorm-seeding/dist/importer.js
  • /usr/src/app/node_modules/typeorm-seeding/dist/commands/seed.command.js
  • /usr/src/app/node_modules/typeorm-seeding/dist/cli.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
    at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/usr/src/app/node_modules/@cspotcode/source-map-support/source-map-support.js:679:30)
    at Function.Module._load (internal/modules/cjs/loader.js:746:27)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:101:18)
    at Object. (/usr/src/app/src/database/seeds/create-email-template.seed.ts:4:1)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Module.m._compile (/usr/src/app/node_modules/ts-node/src/index.ts:1455:23)
    at Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Object.require.extensions. [as .ts] (/usr/src/app/node_modules/ts-node/src/index.ts:1458:12) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/usr/src/app/src/database/seeds/create-email-template.seed.ts',
    '/usr/src/app/node_modules/typeorm-seeding/dist/importer.js',
    '/usr/src/app/node_modules/typeorm-seeding/dist/commands/seed.command.js',
    '/usr/src/app/node_modules/typeorm-seeding/dist/cli.js'
    ]
    }
    error Command failed with exit code 1.
    info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
    (base)

To Reproduce
Steps to reproduce the behavior:

  1. setup docker-compose up
  2. run npm run migrate inside the container (also tried using docker exec)
  3. npm run seed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.