We are unable to set up the code login is not working Something went wrong RepositoryNotFoundError: No repository for "Users" was found. Looks like this entity is not registered in current "default" connection? this error comes
Unable to set up the code
Hi, could you please clarify which steps you made for setup? Please take a look at readme.md we have instructions on how to set up project locally, follow each step carefully. Also attach to your next reply versions of your Node.js and Yarn (do you use yarn or npm? we suggest yarn)
for backened :
psql --u postgres
if you see error please create new user with command -> createuser postgres -s
(s flag stands for super)
3) now you are logged in under postgres super user, run create database bookkeeper_seed
;
4) run this command npm run migrate:run
Please add all required variables to your .env file, here is an example below
npm install
npm start
https://drive.google.com/file/d/1ys-c75VQAcGuopxF6_GS_Izd0RJ5bhkd/view?usp=sharing when try to login via web portal
still your migration file not working https://tinyurl.com/yzubq7xx bookkeeperpublic_migrations.sql I am using the sql file
I have used your cammand but causing issues see the above screenshot psql:/home/mss/Downloads/bookkeeper-backend-/flatlogic-bookkeeper-backend-3af9345fc746b9dfc0dec86478984c44d79ac6d0/bookkeeperpublicmigrations.sql:38: ERROR: relation "companies" does not exist psql:/home/mss/Downloads/bookkeeper-backend-/flatlogic-bookkeeper-backend-3af9345fc746b9dfc0dec86478984c44d79ac6d0/bookkeeperpublicmigrations.sql:41: ERROR: relation "accounts" does not exist psql:/home/mss/Downloads/bookkeeper-backend-/flatlogic-bookkeeper-backend-3af9345fc746b9dfc0dec86478984c44d79ac6d0/bookkeeper_publicmigrations.sql:43: ERROR: relation "public.accounts" does not exist LINE 1: INSERT INTO public.accounts (id, code, status, fiscal_year, ...
https://drive.google.com/file/d/164UXKxCMuOh-iUMf0k7x18j3BMZ1TVBN/view?usp=sharing still same issue I have followed your procedure not works https://drive.google.com/file/d/11YnR0YLZf_nSZQcq4b_-40xfCocq7zcj/view?usp=sharing
let options;
if (process.env.NODEENV === 'production') { options = { "type": "postgres", "url": process.env.DATABASEURL, "synchronize": true, "logging": true, "migrationsTableName": "migrations", "entities": [ "src/entities//*.ts" ], "ssl": true, "extra": { "ssl": { "rejectUnauthorized": false } }, "migrations": [ "src/migrations//.ts" ], "subscribers": [ "src/subscriber//.ts" ], "cli": { "migrationsDir": "src/migrations" } } } else { options = { "type": "postgres", "host": "", "port": 5432, "username": "", "password": "", "database": "fifthlabour", "synchronize": true, "logging": true, "migrationsTableName": "_migrations", "entities": [ "src/entities//*.ts" ], "migrations": [ "src/migrations//.ts" ], "subscribers": [ "src/subscriber//.ts" ], "cli": { "migrationsDir": "src/migrations" } } }
module.exports = options;
NODEENV=development SERVERPORT=8083 PORT=3001
Postgres configuration
PGHOST= PGUSER= PGDATABASE=fifth_labour PGPASSWORD= PGPORT=5432
SECRET=asd2f3rgfa2r2514421 UIBASEURL=http://localhost:3000 UISETPASSWORD_URL=/user/set