Skip to content

Commit 552ceda

Browse files
committed
Initial commit
0 parents  commit 552ceda

26 files changed

+1138
-0
lines changed

.env

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
NODE_ENV=DEV
2+
PORT=5000
3+
SQLITE_PATH=./database.db
4+
SECRET="SuperS3cret_4277m"

.eslintrc.js

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
module.exports = {
2+
env: {
3+
es2021: true,
4+
node: true,
5+
},
6+
extends: ['airbnb-typescript/base', 'plugin:@typescript-eslint/recommended'],
7+
parser: '@typescript-eslint/parser',
8+
parserOptions: {
9+
ecmaVersion: 2018,
10+
sourceType: 'module',
11+
project: './tsconfig.json',
12+
},
13+
rules: {
14+
'@typescript-eslint/explicit-module-boundary-types': 'off',
15+
'no-param-reassign': 'off',
16+
'no-underscore-dangle': 'off',
17+
'consistent-return': 'off',
18+
'no-console': 'off',
19+
'import/prefer-default-export': 'off',
20+
'@typescript-eslint/no-non-null-assertion': 'off',
21+
'class-methods-use-this': 'off',
22+
'@typescript-eslint/naming-convention': 'off'
23+
},
24+
};

.gitattributes

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Declare files that will always have LF line endings on checkout.
2+
3+
*.html text eol=lf
4+
*.scss text eol=lf
5+
*.sass text eol=lf
6+
*.css text eol=lf
7+
*.js text eol=lf
8+
*.json text eol=lf
9+
*.svg text eol=lf
10+
*.yml text eol=lf
11+
*.yaml text eol=lf
12+
*.md text eol=lf
13+
14+
.babelrc text eol=lf
15+
.gitignore text eol=lf
16+
.gitattributes text eol=lf
17+
18+
LICENSE text eol=lf
19+
20+
# Denote all files that are truly binary and should not be modified.
21+
22+
*.png binary
23+
*.jpg binary
24+
*.jpeg binary
25+
*.gif binary
26+
*.bmp binary
27+
*.ai binary
28+
*.psd binary
29+
*.pdf binary
30+
31+
*.otf binary
32+
*.eot binary
33+
*.ttf binary
34+
*.woff binary
35+
*.woff2 binary
36+
*.zip binary
37+
*.rar binary

.gitignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
node_modules
2+
build
3+
4+
# Logs
5+
*.log
6+
npm-debug.log*
7+
yarn-debug.log*
8+
yarn-error.log*
9+
10+
*.db

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v14

CHANGELOG.md

+91
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# Change Log
2+
3+
## [v1.0.1] 2022-06-02
4+
### Improvements
5+
6+
- Dependencies Update for
7+
- NodeJS `v17.0.0`
8+
- NodeJS `v16.15.1`
9+
10+
## [v1.0.0] 2021-07-20
11+
### Stable release
12+
13+
- Persistance migrated to SQLite3 / TypeORM
14+
- Stack: Node JS/ Express / TypeORM / SQLite3
15+
- API:
16+
- Sign UP: `/api/users/register`
17+
- Sign IN: `/api/users/login`
18+
- Logout: `/api/users/logout`
19+
- Check Session: `/api/users/checkSession`
20+
- Edit User: `/api/users/edit`
21+
- Data persistence
22+
- TypeORM / SQLite3
23+
- Db migrations are in `src/migrations` folder
24+
- Added new config `ormconfig.json`
25+
26+
## [0.0.9] 2021-07-19
27+
### Production Update
28+
29+
- Use `pm2` in production - new targets added to `package.json`
30+
- `start` uses `pm2` to start
31+
- `start-node` - load typescript build with Node JS
32+
33+
## [0.0.8] 2021-07-09
34+
### Improvements & Fixes
35+
36+
- Patch #8: Typescript Migration - Tests are failing
37+
- Code refactoring:
38+
- `src/config/keys.ts` - removed
39+
- `keys.ts` variables moved to `.env`
40+
41+
## [0.0.7] 2021-07-09
42+
### Improvements
43+
44+
- Added typescript support
45+
46+
## [0.0.6] 2021-07-07
47+
### Improvements
48+
49+
- Deprecate `src/app.js` - now the app is constructed by:
50+
- `src/server/index.js`
51+
- `src/index.js`
52+
- Integrate JTest: `yarn test`
53+
54+
## [0.0.5] 2021-07-05
55+
### Improvements
56+
57+
- Move sources to `src` folder
58+
- Dockerize project (unstable) - See issue [#6](https://github.com/app-generator/api-server-nodejs/issues/6)
59+
60+
## [0.0.4] 2021-07-04
61+
### Improvements
62+
63+
- Use `Joy` as input validator for `login` & `register`
64+
- Remove `bodyParser` dependency (flagged as deprecated)
65+
66+
## [0.0.3] 2021-07-04
67+
### Complete rewrite
68+
69+
- Update Passport strategy to `JwtStrategy`
70+
- Persistance via MongoDB
71+
- API:
72+
- Sign UP: `/api/users/register`
73+
- Sign IN: `/api/users/login`
74+
- Logout: `/api/users/logout`
75+
- Check Session: `/api/users/checkSession`
76+
- Edit User: `/api/users/edit`
77+
- Merge PR #5 - Added `nodemon` to `devDependencies`
78+
79+
## [0.0.2] 2021-07-03
80+
### Improvements & Fixes
81+
82+
- Patch #3 - Error when installing modules
83+
- Patch #2 - Passport Authentication always returns missing credentials
84+
- Remove `body-parser` dependency
85+
86+
## [0.0.1] 2021-07-03
87+
### Improvements
88+
89+
- Update Dependencies
90+
- Update License file
91+
- Add CHANGELOG.md to track all changes

LICENSE.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# MIT License
2+
3+
Copyright (c) 2019 - present [AppSeed](http://appseed.us/)
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.
22+
23+
<br />
24+
25+
---
26+
For more information regarding licensing, please contact AppSeed < *support @ appseed.us* >

0 commit comments

Comments
 (0)