-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c6864a
commit 6dca9dc
Showing
32 changed files
with
6,368 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
dist/ | ||
**/**/*.log | ||
env/*.env | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,35 @@ | ||
# LAB_e-learning | ||
E-learning system | ||
## About | ||
|
||
This project was created with [express-generator-typescript](https://github.com/seanpmaxwell/express-generator-typescript). | ||
|
||
|
||
## Available Scripts | ||
|
||
### `npm run dev` or `npm run dev:hot` (hot reloading) | ||
|
||
Run the server in development mode. | ||
|
||
### `npm test` or `npm run test:hot` (hot reloading) | ||
|
||
Run all unit-tests. | ||
|
||
### `npm test -- "name of test file" (i.e. Users).` | ||
|
||
Run a single unit-test. | ||
|
||
### `npm run lint` | ||
|
||
Check for linting errors. | ||
|
||
### `npm run build` | ||
|
||
Build the project for production. | ||
|
||
### `npm start` | ||
|
||
Run the production build (Must be built first). | ||
|
||
|
||
## Additional Notes | ||
|
||
- If `npm run dev` gives you issues with bcrypt on MacOS you may need to run: `npm rebuild bcrypt --build-from-source`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
DB_TYPE='' | ||
DB_HOST='' | ||
DB_PORT='' | ||
DB_USERNAME='' | ||
DB_PASSWORD='' | ||
DB_DATABASE='' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import eslint from '@eslint/js'; | ||
import tseslint from 'typescript-eslint'; | ||
import stylisticTs from '@stylistic/eslint-plugin-ts'; | ||
import nodePlugin from 'eslint-plugin-n'; | ||
|
||
|
||
export default tseslint.config( | ||
eslint.configs.recommended, | ||
nodePlugin.configs['flat/recommended-script'], | ||
...tseslint.configs.strictTypeChecked, | ||
...tseslint.configs.stylisticTypeChecked, | ||
{ | ||
ignores: [ | ||
'**/node_modules/*', | ||
'**/*.mjs', | ||
'**/*.js', | ||
], | ||
}, | ||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
project: './tsconfig.json', | ||
warnOnUnsupportedTypeScriptVersion: false, | ||
}, | ||
}, | ||
}, | ||
{ | ||
plugins: { | ||
'@stylistic/ts': stylisticTs, | ||
} | ||
}, | ||
{ files: ['**/*.ts'] }, | ||
{ | ||
rules: { | ||
'@typescript-eslint/explicit-member-accessibility': 'off', | ||
'@typescript-eslint/no-misused-promises': 0, | ||
'@typescript-eslint/no-floating-promises': 0, | ||
'@typescript-eslint/no-confusing-void-expression': 0, | ||
'@typescript-eslint/no-unnecessary-condition': 0, | ||
'@typescript-eslint/restrict-template-expressions': [ 'error', { allowNumber: true }], | ||
'max-len': [ | ||
'warn', | ||
{ | ||
'code': 80 | ||
} | ||
], | ||
'@stylistic/ts/semi': ['warn'], | ||
'comma-dangle': ['warn', 'always-multiline'], | ||
'no-console': 'off', | ||
'no-extra-boolean-cast': 0, | ||
'indent': ['warn', 2], | ||
'quotes': ['warn', 'single'], | ||
'n/no-process-env': 'off', | ||
'n/no-missing-import': 0, | ||
'n/no-unpublished-import': 0 | ||
}, | ||
}, | ||
) |
Oops, something went wrong.