Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ndrwbv/vk-auth-react-nestjs
π [Article] VK Auth in NestJS + React
https://github.com/ndrwbv/vk-auth-react-nestjs
auth authorization-code-flow nestjs react vk vk-api vkontakte
Last synced: 2 months ago
JSON representation
π [Article] VK Auth in NestJS + React
- Host: GitHub
- URL: https://github.com/ndrwbv/vk-auth-react-nestjs
- Owner: ndrwbv
- Created: 2020-07-28T14:20:31.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-05T08:32:02.000Z (almost 2 years ago)
- Last Synced: 2024-09-27T05:02:08.613Z (3 months ago)
- Topics: auth, authorization-code-flow, nestjs, react, vk, vk-api, vkontakte
- Language: TypeScript
- Homepage: https://medium.com/@ndrwbv/%D0%B0%D0%B2%D1%82%D0%BE%D1%80%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F-%D1%87%D0%B5%D1%80%D0%B5%D0%B7-%D0%B2%D0%BA-nestjs-react-797ff4e36154
- Size: 3.18 MB
- Stars: 14
- Watchers: 0
- Forks: 3
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ΠΠ²ΡΠΎΡΠΈΠ·Π°ΡΠΈΡ ΡΠ΅ΡΠ΅Π· ΠΠ NestJS + React
ΠΡΠΈΠΌΠ΅Ρ ΡΠ΅Π°Π»ΠΈΠ·ΠΎΠ²Π°Π½Π½ΠΎΠΉ Π°Π²ΡΠΎΡΠΈΠ·Π°ΡΠΈΠΈ ΠΏΠΎ ΡΠΏΠΎΡΠΎΠ±Ρ Authorization code flow Π½Π° ΠΏΡΠΈΠΌΠ΅ΡΠ΅ NestJS + React.
[Π‘ΡΠ°ΡΡΡ](https://medium.com/@ndrwbv/%D0%B0%D0%B2%D1%82%D0%BE%D1%80%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F-%D1%87%D0%B5%D1%80%D0%B5%D0%B7-%D0%B2%D0%BA-nestjs-react-797ff4e36154)
# Π£ΡΡΠ°Π½ΠΎΠ²ΠΊΠ°
```
git clone [email protected]:ndrwbv/vk-auth-react-nestjs.git
cd vk-auth-react-nestjs
```## Backend
```bash
$ vk-auth-react-nestjs: cd backend
$ vk-auth-react-nestjs/backend: docker-compose up -d
$ vk-auth-react-nestjs/backend: yarn
$ vk-auth-react-nestjs/backend: yarn dev
```## Frontend
```bash
$ vk-auth-react-nestjs: cd frontend
$ vk-auth-react-nestjs/frontend: yarn
$ vk-auth-react-nestjs/frontend: yarn dev
```# ΠΠ°ΡΡΡΠΎΠΉΠΊΠ°
ΠΠ»Ρ ΡΠ°Π±ΠΎΡΡ Ρ Π²Π°ΡΠΈΠΌ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅ΠΌ Π½Π΅ΠΎΠ±Ρ ΠΎΠ΄ΠΈΠΌΠΎ:
1. Π‘ΠΎΠ·Π΄Π°ΡΡ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅ Π²ΠΎ ΠΠΊΠΎΠ½ΡΠ°ΠΊΡΠ΅ https://vk.com/editapp?act=create
2. ΠΡΡΠ΅Π΄Π°ΠΊΡΠΈΡΠΎΠ²Π°ΡΡ ΡΠ°ΠΉΠ»Ρ .env Π² ΠΏΠ°ΠΏΠΊΠ΅ frontend ΠΈ backend```bash
frontend/.env: REACT_APP_CLIENT_ID -- ID ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΡ
backend/.env: CLIENT_ID -- ID ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΡ
backend/.env: CLIENT_SECRET -- ΠΠ°ΡΠΈΡΡΠ½Π½ΡΠΉ ΠΊΠ»ΡΡ
```