Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
96b2734
feat:user and role model implemented
yaredtsy Jan 21, 2023
12d1a16
refa
yaredtsy Jan 21, 2023
69fed21
feat: permission model added
yaredtsy Jan 28, 2023
4f30173
refa: database restructured
yaredtsy Mar 7, 2023
0edc0d6
feat: enum validation added
yaredtsy Mar 7, 2023
4961a0f
feat: user model added
yaredtsy Mar 7, 2023
206f262
feat: user management added
yaredtsy Mar 8, 2023
37a18dc
feat: Auth model added
yaredtsy Mar 11, 2023
e68ccf2
feat: local strategy added
yaredtsy Mar 11, 2023
4ef9d51
feat: secret_key added
yaredtsy Mar 11, 2023
5ff1db5
feat: auth added
yaredtsy Mar 11, 2023
5562c16
feat: basic finalized
yaredtsy Mar 13, 2023
bca48ca
feat: auth validation optimized
yaredtsy Mar 14, 2023
eac9495
refa: code cleaned
yaredtsy Mar 14, 2023
41fbaea
refa: response refactored
yaredtsy Mar 14, 2023
b3c0680
refa: code cleaned
yaredtsy Mar 14, 2023
56e1298
feat: role and permission
yaredtsy Mar 18, 2023
ec8e91a
feat: role permission fixed completed
yaredtsy Mar 20, 2023
b6c9d85
fix: resource should exists in db
yaredtsy Mar 24, 2023
f5c8083
refa: permission refactored
yaredtsy Mar 24, 2023
4b2a413
refa: role refactor
yaredtsy Mar 24, 2023
f242276
fix: login fix
yaredtsy Mar 24, 2023
fc24ad3
refa: user refactored
yaredtsy Mar 24, 2023
3bb5c35
feat: bin added
yaredtsy Mar 25, 2023
124b0d1
feat: seeder added
yaredtsy Mar 25, 2023
98fa02c
test: fix absolute paths
Apr 9, 2023
0b24915
config: config
Apr 9, 2023
37fb8ba
refa: code refa
Apr 9, 2023
48cf3f1
refa: permission refa
Apr 9, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
],
"rules": {
"import/first": 2,
"camelcase":"error",
"import/newline-after-import": 2,
"import/order": [
"error",
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
. "$(dirname -- "$0")/_/husky.sh"

npm test
npm run eslint
# npm run eslint
34 changes: 24 additions & 10 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,32 @@
import { pathsToModuleNameMapper } from 'ts-jest';

// import { compilerOptions } from './tsconfig.json';

const TS_CONFIG_PATH = './tsconfig.json';
const SRC_PATH = '<rootDir>/src';

const config = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['<rootDir>/src/tests'],
setupFiles: ['<rootDir>/src/tests/setup.ts'],
moduleNameMapper: {
'@core/(.*)': ['<rootDir>/src/core/$1'],
'@helpers/(.*)': ['<rootDir>/src/helpers/$1'],
'@routes/(.*)': ['<rootDir>/src/routes/$1'],
'@test/(.*)': ['<rootDir>/src/tests/$1'],
'@app': ['<rootDir>/src/app.ts'],
'@routes': ['<rootDir>/src/routes/index.ts'],
'@server': ['<rootDir>/src/server.ts'],
'@config': ['<rootDir>/src/config.ts']
},
moduleNameMapper: pathsToModuleNameMapper(
{
'@core/*': ['./src/core/*'],
'@database': ['./src/database.ts'],
'@helpers/*': ['./src/helpers/*'],
'@apps': ['./src/apps/index.ts'],
'@apps/*': ['./src/apps/*'],
'@test/*': ['./src/tests/*'],
'@config': ['./src/config.ts'],
'@app': ['./src/app.ts'],
'@server': ['./src/server.ts'],
'@bin/*': ['./src/bin/*']
},
{
prefix: '<rootDir>/'
}
),
collectCoverageFrom: ['<rootDir>/src/**/*.ts', '!**/node_modules/**']
};

Expand Down
Loading