Skip to content

Commit

Permalink
Added authentication feature
Browse files Browse the repository at this point in the history
  • Loading branch information
santoshshinde2012 committed Oct 13, 2024
1 parent 8980d6a commit a64589b
Show file tree
Hide file tree
Showing 13 changed files with 850 additions and 8 deletions.
11 changes: 8 additions & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
NODE_ENV=development
PORT=8080
PORT=8082
DB_HOST=127.0.0.1
DB_PORT=5432
DB_USER=user1
DB_PASSWORD=
DB_NAME=database
DB_PASSWORD=user1@123
DB_NAME=database
HOST_IP=192.168.1.42
OAUTH_CLIENT_ID=59687ac8d3fb4c928bfe3bf6f38c2524
OAUTH_SECRET=e9ed54a2-2867-44a4-a053-d3048209a221
OAUTH_REDIRECT_URL=http://localhost:8082/api/v1/auth/callback
SESSION_SECRET=session-secret
2 changes: 1 addition & 1 deletion docker/postgresql/Dockerfile.postgis
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ RUN apt-get update \
COPY init.sql /docker-entrypoint-initdb.d/

# Enable PostGIS extension
RUN echo "CREATE EXTENSION IF NOT EXISTS postgis;" >> /docker-entrypoint-initdb.d/init.sql
# RUN echo "CREATE EXTENSION IF NOT EXISTS postgis;" >> /docker-entrypoint-initdb.d/init.sql
9 changes: 8 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
declare module 'eslint-plugin-jest'
declare module 'eslint-plugin-jest';
import 'express-session';

declare module 'express-session' {
interface SessionData {
username?: string;
}
}
208 changes: 205 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,29 @@
"@types/express": "^4.17.21",
"@types/node": "^20.16.11",
"@types/swagger-ui-express": "^4.1.6",
"body-parser": "^1.20.3",
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"express": "^4.21.1",
"express-session": "^1.18.1",
"helmet": "^7.2.0",
"http-status-codes": "^2.3.0",
"jsonwebtoken": "^9.0.2",
"pg": "^8.13.0",
"pg-hstore": "^2.3.4",
"sequelize": "^6.37.4",
"swagger-ui-express": "^5.0.1",
"uuid": "^10.0.0",
"winston": "^3.15.0"
},
"devDependencies": {
"@eslint/js": "^9.12.0",
"@types/cors": "^2.8.17",
"@types/express-session": "^1.18.0",
"@types/jest": "^29.5.13",
"@types/jsonwebtoken": "^9.0.7",
"@types/supertest": "^6.0.2",
"@types/uuid": "^10.0.0",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jest": "^28.8.3",
Expand Down
Loading

0 comments on commit a64589b

Please sign in to comment.