Skip to content

Commit 885c1ac

Browse files
committed
update: readme
1 parent 1f651fc commit 885c1ac

51 files changed

Lines changed: 3972 additions & 1217 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
backend:
11+
runs-on: ubuntu-latest
12+
defaults:
13+
run:
14+
working-directory: backend
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
cache: npm
23+
cache-dependency-path: backend/package-lock.json
24+
25+
- run: npm ci
26+
- run: npx prisma generate
27+
- run: npx tsc --noEmit
28+
- run: npm run lint
29+
- run: npm test
30+
31+
frontend:
32+
runs-on: ubuntu-latest
33+
defaults:
34+
run:
35+
working-directory: frontend
36+
37+
steps:
38+
- uses: actions/checkout@v4
39+
40+
- uses: actions/setup-node@v4
41+
with:
42+
node-version: 20
43+
cache: npm
44+
cache-dependency-path: frontend/package-lock.json
45+
46+
- run: npm ci
47+
- run: npm run lint
48+
- run: npm run build

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Merlyn Mercy Lona Maki Reddy
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 437 additions & 1 deletion
Large diffs are not rendered by default.

backend/eslint.config.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import js from '@eslint/js';
2+
import globals from 'globals';
3+
import tseslint from 'typescript-eslint';
4+
5+
export default tseslint.config(
6+
{ ignores: ['dist', 'node_modules', 'prisma'] },
7+
js.configs.recommended,
8+
...tseslint.configs.recommended,
9+
{
10+
files: ['**/*.ts'],
11+
languageOptions: {
12+
ecmaVersion: 2020,
13+
globals: globals.node,
14+
},
15+
rules: {
16+
'@typescript-eslint/no-explicit-any': 'warn',
17+
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
18+
},
19+
},
20+
);

backend/jest.config.mjs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/** @type {import('jest').Config} */
2+
export default {
3+
preset: 'ts-jest/presets/default-esm',
4+
testEnvironment: 'node',
5+
extensionsToTreatAsEsm: ['.ts'],
6+
moduleNameMapper: {
7+
'^(\\.{1,2}/.*)\\.js$': '$1',
8+
},
9+
transform: {
10+
'^.+\\.ts$': [
11+
'ts-jest',
12+
{
13+
useESM: true,
14+
tsconfig: 'tsconfig.json',
15+
},
16+
],
17+
},
18+
testMatch: ['**/tests/unit/**/*.test.ts'],
19+
setupFiles: ['<rootDir>/tests/setup.ts'],
20+
modulePathIgnorePatterns: ['<rootDir>/dist/'],
21+
collectCoverageFrom: ['src/modules/**/*.service.ts'],
22+
};

0 commit comments

Comments
 (0)