Skip to content

Commit

Permalink
CRUD: Review - Comment - Component
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhbao922003 committed Oct 9, 2024
1 parent 0c6864a commit 6dca9dc
Show file tree
Hide file tree
Showing 32 changed files with 6,368 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
dist/
**/**/*.log
env/*.env

# Logs
logs
*.log
Expand Down
37 changes: 35 additions & 2 deletions README.md
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`.
6 changes: 6 additions & 0 deletions env/development.env.example
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=''
58 changes: 58 additions & 0 deletions eslint.config.mjs
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
},
},
)
Loading

0 comments on commit 6dca9dc

Please sign in to comment.