Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
2ecd688
Updated gitignore
SerhiyDmytruk Apr 21, 2026
ee8e8e2
Start project
SerhiyDmytruk Apr 21, 2026
f049e51
Updated gitignore
SerhiyDmytruk Apr 21, 2026
a684737
Prepate to use TS
SerhiyDmytruk Apr 21, 2026
10665ab
Installed new packages
SerhiyDmytruk Apr 21, 2026
71cb94f
Added simple frontend
SerhiyDmytruk Apr 22, 2026
3ae9c73
Added skeleton for FE part
SerhiyDmytruk Apr 23, 2026
bb55aea
Added changes to the client side
SerhiyDmytruk Apr 28, 2026
df1b832
Migrate client build and tests from react-scripts to Vite and Vitest
SerhiyDmytruk Apr 28, 2026
dad697f
Updated BE
SerhiyDmytruk Apr 28, 2026
e52fc8b
Migrate backend tests from Jest to Vitest
SerhiyDmytruk Apr 28, 2026
93444c4
Added Form, updated header, and route
SerhiyDmytruk Apr 30, 2026
edc2bc3
Removed supertest
SerhiyDmytruk Apr 30, 2026
5b9f115
Added new controllers and Form
SerhiyDmytruk Apr 30, 2026
08e4876
Login changes
SerhiyDmytruk Apr 30, 2026
5fbf8e1
Added test for login
SerhiyDmytruk Apr 30, 2026
885a67c
Added logic to controllers
SerhiyDmytruk May 2, 2026
808e4ca
Added test for controllers
SerhiyDmytruk May 2, 2026
29f615a
Prisma migration. Auth + Login - connect to db
SerhiyDmytruk May 2, 2026
c64289d
Added Token. Login and Logout updated
SerhiyDmytruk May 2, 2026
b1b50ea
Me controller - added
SerhiyDmytruk May 2, 2026
1a4a09e
Added activation token. Updated test.
SerhiyDmytruk May 3, 2026
a0df298
Added client
SerhiyDmytruk May 3, 2026
8ac5ec6
Login and Auth now request to be
SerhiyDmytruk May 3, 2026
4221b25
Added checking if user logged - uptdaed in the components, also test
SerhiyDmytruk May 3, 2026
9b07c3d
Activation Page
SerhiyDmytruk May 3, 2026
ad66547
Activation Page Test, bugfix
SerhiyDmytruk May 3, 2026
20a07f0
Profile controller
SerhiyDmytruk May 3, 2026
68b5b73
Reset pass controller. BE
SerhiyDmytruk May 3, 2026
3a88e39
Passwords pages are done
SerhiyDmytruk May 3, 2026
5715b53
Fixed github actions issue
SerhiyDmytruk May 3, 2026
490cdb2
Fixed github actions issue
SerhiyDmytruk May 4, 2026
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
16 changes: 16 additions & 0 deletions .env-sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
PORT=5000
BE_URL=http://localhost:5000
CLIENT_URL=http://localhost:5173

SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your_mail@gmail.com
SMTP_PASSWORD=your_application_password_from_gmail

POSTGRES_HOST=127.0.0.1
POSTGRES_DB=postgres
POSTGRES_USER=your_postgress_username
POSTGRES_PASSWORD=your_postgress_password

JWT_ACCESS_SECRET=0e7e424e-0363-40fc-91af-7b694bd7f16c
JWT_REFRESH_SECRET=eaa65921-931b-4e4d-8ce4-1acb5229edb5
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
src/client
6 changes: 1 addition & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
module.exports = {
extends: '@mate-academy/eslint-config',
env: {
jest: true
},
rules: {
'no-proto': 0
'no-proto': 0,
},
plugins: ['jest']
};
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
node-version: [20.x]
node-version: [22.x]

steps:
- uses: actions/checkout@v2
Expand All @@ -20,4 +20,5 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run prisma:generate:db
- run: npm test
24 changes: 24 additions & 0 deletions .github/workflows/test.yml-template
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Test

on:
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [22.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run prisma:generate:db
- run: npm test
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
.vscode

# Node
dist
node_modules

# MacOS
.DS_Store

# env files
*.env
.env*
.env
/src/generated/prisma

src/client/build
src/client/dist
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
/node_modules
/dist

src/client/build
src/client/dist
25 changes: 25 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: node_auth

services:
db:
image: postgres:18
container_name: node_auth-db
restart: unless-stopped
ports:
- '${POSTGRES_PORT:-5433}:5432'
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- node_auth_pg_data:/var/lib/postgresql
networks:
- node_auth_network

volumes:
node_auth_pg_data:
name: node_auth_pg_data

networks:
node_auth_network:
name: node_auth_network
Loading
Loading