Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
99bd750
chore(ci): update leaderboard link
YashKumarVerma Feb 27, 2021
e8a7956
feat(user): show logged in user list (#109)
tanay13 Feb 27, 2021
2ffe8c0
refactor(views): add partials to avoid code duplication (#121)
kd-singh-dev Feb 27, 2021
d5faf6b
docs(readme): add status badges (#114)
kd-singh-dev Feb 27, 2021
301b7e3
fix(application): error alert on creation (#125)
MASTERCHIEF011 Feb 27, 2021
2fbb431
chore(user): migrate route to application controller (#126)
kd-singh-dev Feb 27, 2021
69c122f
chore(ci): run test on pull request (#132)
MASTERCHIEF011 Feb 27, 2021
0cc3089
docs(ci): add deploy to heroku button (#128)
kd-singh-dev Feb 27, 2021
08bcb0b
fix(passwd): re-routing pages (#131)
MASTERCHIEF011 Feb 27, 2021
9b7bbcb
chore(ci): integrated codecov coverage (#133)
MASTERCHIEF011 Feb 28, 2021
26c716b
fixX(application): fix application count(#134)
tanay13 Feb 28, 2021
5100896
fix(ui): onclick copy to clipboard function (#144)
MASTERCHIEF011 Feb 28, 2021
f5235dd
feat(ui): add confirmation before delete feature (#142)
MASTERCHIEF011 Feb 28, 2021
61e73c4
feat(ui): add box shadow to app cards (#137)
MASTERCHIEF011 Feb 28, 2021
72e012b
chore(app): remove unused functions (#141)
kd-singh-dev Feb 28, 2021
cb06b80
feat(app): customize from single file (#135)
kd-singh-dev Feb 28, 2021
928aa28
Fixed all linting issues (#140)
kd-singh-dev Feb 28, 2021
ea44884
compose file added (#75)
kd-singh-dev Feb 28, 2021
a510219
tests(user): eliminate outdated test (#148)
MASTERCHIEF011 Mar 1, 2021
0676142
chore(npm): update lockfile
YashKumarVerma Mar 7, 2021
6c47c0a
chore(eslint): fix eslint warnings
YashKumarVerma Mar 7, 2021
b86689a
chore(ci): remove lables workflow (#151)
priyanshu20 Mar 13, 2021
9815a05
chore(docker): add ignore file, minor fixes (#150)
Aryaman1706 Mar 16, 2021
283d186
chore(config): add welcome bot
YashKumarVerma Mar 18, 2021
d77e794
fix(app): fixed findAllByParticipants method (#171)
aniketbiswas21 Mar 18, 2021
b9c2ac7
feat(ui): add card for user profile (#174)
Saumya008 Mar 21, 2021
4f81214
fix(ui): delete button in application card (#176)
Saumya008 Mar 21, 2021
325b2ba
feat(ui): add navbar logo to edit profile page (#177)
jnatishay78 Mar 21, 2021
e174d83
fix(app): fixed minimum description condition (#179)
aniketbiswas21 Mar 22, 2021
2662ec4
fet(ui): redesign center card of profile edit page #163 (#178)
jnatishay78 Mar 23, 2021
c42fbe7
chore(deps): bump @nestjs/swagger from 4.7.5 to 4.8.0 (#180)
dependabot-preview[bot] Mar 24, 2021
5db9d22
chore(deps-dev): bump @typescript-eslint/eslint-plugin from 3.9.1 to …
dependabot-preview[bot] Mar 24, 2021
4be5560
chore(deps): [security] bump node-notifier from 8.0.0 to 8.0.2 (#182)
dependabot-preview[bot] Mar 24, 2021
cbff76b
chore(deps): bump express-rate-limit from 5.2.3 to 5.2.6 (#183)
dependabot-preview[bot] Mar 24, 2021
b40b5c4
chore(deps-dev): bump @nestjs/cli from 7.5.3 to 7.5.6 (#185)
dependabot-preview[bot] Mar 24, 2021
07c4c5a
chore(deps-dev): bump @typescript-eslint/parser from 3.9.1 to 3.10.1 …
dependabot-preview[bot] Mar 24, 2021
561d492
fix(ui): remove excess spaces and added word-wrap (#186)
vismitap Mar 24, 2021
76d512e
feat(ui): add cards to represented in applications (#187)
sk1122 Mar 24, 2021
2c0c3f1
feat(ui): add logo to navbar in application details (#188)
Saumya008 Mar 24, 2021
56db2c8
chore(deps-dev): bump prettier from 1.19.1 to 2.2.1 (#189)
dependabot-preview[bot] Mar 25, 2021
f5faf69
chore(deps-dev): bump ts-loader from 6.2.2 to 8.0.10 (#191)
dependabot-preview[bot] Mar 25, 2021
fbb7d71
chore(deps-dev): bump typescript from 3.9.7 to 3.9.9 (#192)
dependabot-preview[bot] Mar 25, 2021
6b2fe07
chore(deps-dev): bump @types/node from 13.13.34 to 14.14.35 (#193)
dependabot-preview[bot] Mar 25, 2021
eb68e88
chore(deps): bump mongoose from 5.11.11 to 5.12.2 (#190)
dependabot-preview[bot] Mar 25, 2021
720a3de
chore(deps-dev): bump eslint from 7.7.0 to 7.24.0 (#205)
dependabot-preview[bot] Apr 10, 2021
11e30e9
chore(server): Logging to a file (#207)
aniketbiswas21 Apr 14, 2021
97820bc
chore(deps): bump @nestjs/common from 7.6.14 to 7.6.15 (#215)
dependabot-preview[bot] Apr 16, 2021
2afb5eb
chore(deps-dev): bump @types/node from 14.14.37 to 15.0.0 (#223)
dependabot-preview[bot] Apr 28, 2021
fc75806
chore(deps-dev): bump ts-loader from 8.1.0 to 9.1.1 (#222)
dependabot-preview[bot] Apr 28, 2021
696245b
chore(deps): bump typedoc from 0.20.32 to 0.20.36 (#221)
dependabot-preview[bot] Apr 28, 2021
25f36fe
chore(deps-dev): bump supertest from 4.0.2 to 6.1.3 (#213)
dependabot-preview[bot] Apr 28, 2021
43b7cfd
chore(deps-dev): bump @nestjs/schematics from 7.3.0 to 7.3.1 (#212)
dependabot-preview[bot] Apr 28, 2021
215398e
chore(deps): bump class-transformer from 0.3.1 to 0.4.0 (#216)
dependabot-preview[bot] Apr 28, 2021
a6979a6
chore(deps): bump rxjs from 6.6.6 to 6.6.7 (#211)
dependabot-preview[bot] Apr 28, 2021
fe9281c
chore(deps): bump nest-winston from 1.4.1 to 1.4.2 (#210)
dependabot-preview[bot] Apr 28, 2021
36c8ddd
chore(deps-dev): bump @nestjs/testing from 7.6.1 to 7.6.15 (#204)
dependabot-preview[bot] Apr 28, 2021
c3ab986
chore(deps-dev): bump @nestjs/cli from 7.5.6 to 7.6.0 (#214)
dependabot-preview[bot] Apr 28, 2021
79b7221
chore(deps): bump pg from 8.5.1 to 8.6.0 (#224)
dependabot-preview[bot] May 11, 2021
06f1140
chore(deps): bump mongoose from 5.12.3 to 5.12.8 (#240)
dependabot-preview[bot] May 11, 2021
8e9d050
chore(deps-dev): bump @types/bcrypt from 3.0.0 to 5.0.0 (#239)
dependabot-preview[bot] May 11, 2021
2bc2a4f
chore(deps-dev): bump eslint from 7.24.0 to 7.26.0 (#238)
dependabot-preview[bot] May 11, 2021
b60b926
chore(deps): [security] bump hosted-git-info from 2.8.8 to 2.8.9 (#237)
dependabot-preview[bot] May 11, 2021
d805f50
Upgrade to GitHub-native Dependabot (#234)
dependabot-preview[bot] May 11, 2021
e55fe4d
chore(deps-dev): bump @types/supertest from 2.0.10 to 2.0.11 (#233)
dependabot-preview[bot] May 11, 2021
9acf178
chore(deps): bump @nestjs/core from 7.6.14 to 7.6.15 (#231)
dependabot-preview[bot] May 11, 2021
f594140
chore(deps): bump class-validator from 0.12.2 to 0.13.1 (#225)
dependabot-preview[bot] May 11, 2021
bba957c
chore(deps-dev): bump @types/jest from 26.0.10 to 26.0.23 (#226)
dependabot-preview[bot] May 11, 2021
5bb26f0
chore(deps-dev): bump ts-node from 9.0.0 to 9.1.1 (#228)
dependabot-preview[bot] May 11, 2021
46f73c8
chore(deps): bump helmet from 4.4.1 to 4.6.0 (#236)
dependabot-preview[bot] May 11, 2021
0028f4d
feat: disable copy button for redirect URL
YashKumarVerma Nov 20, 2021
740c47c
chore: remove authentico references
YashKumarVerma Nov 20, 2021
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
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package-lock.json
yarn.lock
node_modules/
13 changes: 13 additions & 0 deletions .github/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Comment to be posted to on first time issues
newIssueWelcomeComment: >
Thank you for opening an issue. Make sure that you star the project as it encourages our contributors to work hard :)

# Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome

# Comment to be posted to on PRs from first time contributors in your repository
newPRWelcomeComment: >
Thanks for opening this pull request! Please check out our contributing guidelines and support our work by starring us :star:

# Comment to be posted to on pull requests merged by a first time user
firstPRMergeComment: >
Congrats on merging your first pull request! Thanks a lot! Did you star the repo yet?
55 changes: 55 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "23:30"
open-pull-requests-limit: 10
ignore:
- dependency-name: ts-loader
versions:
- 8.0.10
- 8.2.0
- 9.0.2
- 9.1.0
- dependency-name: "@types/node"
versions:
- 14.14.39
- 14.14.41
- dependency-name: typedoc
versions:
- 0.20.35
- dependency-name: mongodb-memory-server
versions:
- 6.9.6
- dependency-name: "@types/nodemailer"
versions:
- 6.4.1
- dependency-name: "@types/express"
versions:
- 4.17.11
- dependency-name: eslint
versions:
- 7.23.0
- dependency-name: "@nestjs/mongoose"
versions:
- 7.2.4
- dependency-name: "@types/jest"
versions:
- 26.0.22
- dependency-name: swagger-ui-express
versions:
- 4.1.6
- dependency-name: "@types/passport-jwt"
versions:
- 3.0.5
- dependency-name: "@nestjs/platform-express"
versions:
- 7.6.15
- dependency-name: jest
versions:
- 26.6.3
- dependency-name: typescript
versions:
- 3.9.9
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "Ensure Build"
on: [push]
name: 'Ensure Build'
on: [push, pull_request]

jobs:
build:
Expand Down
15 changes: 0 additions & 15 deletions .github/workflows/labels.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Codecov coverage

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: 8

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- name: npm install and test
run: |
npm install
npm test
env:
CI: true
- name: Upload coverage to Codecov
run: ./bin/codecov
15 changes: 7 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
FROM node:15.3.0-alpine3.10
FROM node:lts-alpine3.10

# Labls
# Labels
LABEL maintainer="Yash Kumar Verma [email protected]"

# Document environment configurations
ENV PORT=80
ENV database ='mongodb://127.0.0.1:27017/authentico'
ENV database ='mongodb://127.0.0.1:27017/uniauth-backend'

# Create Directory for the Container
WORKDIR /app

# Only copy the package.json file to work directory
COPY package.json /app

COPY package.json .

# Install all Packages
RUN npm install

# Copy all other source code to work directory
ADD . /app
COPY . .

# Build the project
RUN npm run build
RUN docker compose up
# RUN docker compose up

# run the server
CMD ["npm", "start:dev"]
CMD ["npm", "run", "start:dev"]

EXPOSE 80
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Authentico

![Ensure Build](https://github.com/YashKumarVerma/authentico-backend/workflows/Ensure%20Build/badge.svg)
# UniAuth Backend
![GitHub issues](https://img.shields.io/github/issues/UniAuth/uniauth-backend)
![GitHub pull requests](https://img.shields.io/github/issues-pr/Uniauth/uniauth-backend)
![GitHub last commit](https://img.shields.io/github/last-commit/uniauth/uniauth-backend)
![Gitlab code coverage](https://img.shields.io/gitlab/coverage/uniauth/uniauth-backend/master)
![GitHub top language](https://img.shields.io/github/languages/top/uniauth/uniauth-backend)
![Docker Automated build](https://img.shields.io/docker/automated/UniAuth/uniauth-backend)
[![CodeFactor](https://www.codefactor.io/repository/github/uniauth/uniauth-backend/badge)](https://www.codefactor.io/repository/github/uniauth/uniauth-backend)
![Ensure Build](https://github.com/UniAuth/uniauth-backend/workflows/Ensure%20Build/badge.svg)

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/uniauth/uniauth-backend)

## Objective

Expand Down
7 changes: 7 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "UniAuth",
"description": "UniAuth is the core provider of auth services.",
"repository": "https://github.com/UniAuth/uniauth-backend",
"logo": "https://avatars.githubusercontent.com/u/78133145?s=200&v=4",
"keywords": ["node", "express"]
}
7 changes: 7 additions & 0 deletions config/appData.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import * as config from 'config';

export const appData = {
Name: config.get('api.name'),
Description: config.get('api.description'),
Version: config.get('api.version'),
};
2 changes: 1 addition & 1 deletion config/custom-environment-variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ server:
port: PORT

database:
string: 'mongodb://127.0.0.1:27017/authentico'
string: 'mongodb://127.0.0.1:27017/uniauth-backend'
type: 'mongodb'
6 changes: 3 additions & 3 deletions config/default.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
api:
name: Authentico
description: '**THE** auth system.'
name: UniAuth
description: 'The next gen auth in vit'
version: 1.0.0
route: 'api'

database:
string: 'mongodb://127.0.0.1:27017/authentico'
string: 'mongodb://127.0.0.1:27017/uniauth-backend'
type: 'mongodb'

server:
Expand Down
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: '3.0'
services:
uniauth:
build: .
image: uniauth:1
ports:
- '80:80'
environment:
- database = "mongodb://127.0.0.1:27017/uniauth-backend"
66 changes: 36 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "authentico-backend",
"name": "uniauth-backend",
"version": "1.0.0",
"description": "Authentico is the core provider of auth services.",
"description": "uniauth-backend is the core provider of auth services.",
"author": "Yash Kumar Verma <[email protected]>",
"private": true,
"license": "MIT",
Expand All @@ -25,68 +25,74 @@
"build:doc": "./node_modules/.bin/compodoc-p libs/core/tsconfig.lib.json--theme Readthedocs-d dist/apps/documentation/compodoc ",
"serve:doc": "./node_modules/.bin/compodoc-p libs/core/tsconfig.lib.json--theme Readthedocs-d dist/apps/documentation/compodoc-s"
},
"pre-commit": [ "precommit-msg","test","format","lint" ],
"pre-commit": [
"precommit-msg",
"format",
"lint"
],
"dependencies": {
"@compodoc/compodoc": "^1.1.11",
"@nestjs/common": "^7.0.0",
"@nestjs/core": "^7.0.0",
"@nestjs/common": "^7.6.15",
"@nestjs/core": "^7.6.15",
"@nestjs/jwt": "^7.2.0",
"@nestjs/mongoose": "^7.2.1",
"@nestjs/passport": "^7.1.5",
"@nestjs/platform-express": "^7.0.0",
"@nestjs/swagger": "^4.7.5",
"@nestjs/swagger": "^4.8.0",
"@vitspot/vit-registration-number": "^1.0.1",
"class-transformer": "^0.3.1",
"class-validator": "^0.12.2",
"class-transformer": "^0.4.0",
"class-validator": "^0.13.1",
"config": "^3.3.2",
"cookie-parser": "^1.4.5",
"crypto": "^1.0.1",
"express-rate-limit": "^5.2.3",
"express-rate-limit": "^5.2.6",
"hbs": "^4.1.1",
"helmet": "^4.2.0",
"mongoose": "^5.11.11",
"helmet": "^4.6.0",
"mongoose": "^5.12.8",
"mongoose-unique-validator": "^2.0.3",
"nest-winston": "^1.4.2",
"nodemailer": "^6.4.18",
"passport": "^0.4.1",
"passport-jwt": "^4.0.0",
"passport-local": "^1.0.0",
"pg": "^8.5.1",
"pg": "^8.6.0",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",
"rxjs": "^6.5.4",
"rxjs": "^6.6.7",
"swagger-ui-express": "^4.1.5",
"typedoc": "^0.20.0-beta.24",
"uuid": "^8.3.2"
"typedoc": "^0.20.36",
"uuid": "^8.3.2",
"winston": "^3.3.3"
},
"devDependencies": {
"@nestjs/cli": "^7.0.0",
"@nestjs/schematics": "^7.0.0",
"@nestjs/testing": "^7.6.1",
"@types/bcrypt": "^3.0.0",
"@nestjs/cli": "^7.6.0",
"@nestjs/schematics": "^7.3.1",
"@nestjs/testing": "^7.6.15",
"@types/bcrypt": "^5.0.0",
"@types/cookie-parser": "^1.4.2",
"@types/express": "^4.17.3",
"@types/jest": "26.0.10",
"@types/node": "^13.9.1",
"@types/jest": "26.0.23",
"@types/node": "^15.0.0",
"@types/nodemailer": "^6.4.0",
"@types/passport-google-oauth20": "^2.0.4",
"@types/passport-jwt": "^3.0.3",
"@types/supertest": "^2.0.8",
"@typescript-eslint/eslint-plugin": "3.9.1",
"@typescript-eslint/parser": "3.9.1",
"@types/supertest": "^2.0.11",
"@typescript-eslint/eslint-plugin": "4.0.0",
"@typescript-eslint/parser": "3.10.1",
"bcrypt": "^5.0.0",
"eslint": "7.7.0",
"eslint": "7.26.0",
"eslint-config-prettier": "^6.10.0",
"eslint-plugin-import": "^2.20.1",
"jest": "26.4.2",
"mongodb-memory-server": "^6.9.3",
"pre-commit": "^1.2.2",
"prettier": "^1.19.1",
"supertest": "^4.0.2",
"prettier": "^2.2.1",
"supertest": "^6.1.3",
"ts-jest": "26.2.0",
"ts-loader": "^6.2.1",
"ts-node": "9.0.0",
"ts-loader": "^9.1.1",
"ts-node": "9.1.1",
"tsconfig-paths": "^3.9.0",
"typescript": "^3.7.4"
"typescript": "^3.9.9"
},
"jest": {
"moduleFileExtensions": [
Expand Down
5 changes: 5 additions & 0 deletions src/account/account.controller.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import { Test, TestingModule } from '@nestjs/testing';
import { WinstonModule } from 'nest-winston';
import { UserService } from '../user/user.service';
import { AuthService } from '../auth/auth.service';
import { AccountController } from './account.controller';
import { AccountService } from './account.service';
import { MailerService } from '../mailer/mailer.service';
import { ApplicationService } from '../application/application.service';
import { closeInMongodConnection } from '../../test-utils/MongooseTestModule';
import { LoggerConfig } from '../logger/LoggerConfig';

const logger: LoggerConfig = new LoggerConfig();

describe('AccountController', () => {
let controller: AccountController;
Expand Down Expand Up @@ -53,6 +57,7 @@ describe('AccountController', () => {
}),
},
],
imports: [WinstonModule.forRoot(logger.console())],
}).compile();

controller = module.get<AccountController>(AccountController);
Expand Down
Loading