Backend: - New InvitationLink model: token, mentor, created_at, used_by, is_banned - Links expire after 12h, single-use, multiple active links allowed - generate-invitation-link: creates InvitationLink (doesn't overwrite old) - info-by-token: validates expiry/usage/ban before returning mentor info - register-by-link: validates InvitationLink, marks used_by on registration - Migration 0013_invitation_link_model Frontend: - Profile: show user's universal_code with copy button - InviteDialog: 8 separate input boxes for code (auto-focus, paste support) - InviteDialog: new "По ссылке" tab — generate link, copy, show expiry - /invite/:token page: public registration page with mentor info preview - Auto-login after invite link registration (setSession + checkUserSession) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .editorconfig | ||
| .eslintignore | ||
| .eslintrc.cjs | ||
| .gitignore | ||
| .prettierignore | ||
| Dockerfile | ||
| README.md | ||
| index.html | ||
| jsconfig.json | ||
| next.config.mjs | ||
| package-lock.json | ||
| package.json | ||
| prettier.config.mjs | ||
| vite.config.js | ||
| yarn.lock | ||
README.md
Prerequisites
- Node.js 20.x (Recommended)
Installation
Using Yarn (Recommended)
yarn install
yarn dev
Using Npm
npm i
npm run dev
Build
yarn build
# or
npm run build
Mock server
By default we provide demo data from : https://api-dev-minimal-[version].vercel.app
To set up your local server:
-
Resource: Download.
Full version
- Create React App (migrate to CRA).
- Next.js
- Vite.js
Starter version
- To remove unnecessary components. This is a simplified version (https://starter.minimals.cc/)
- Good to start a new project. You can copy components from the full version.
- Make sure to install the dependencies exactly as compared to the full version.
NOTE: When copying folders remember to also copy hidden files like .env. This is important because .env files often contain environment variables that are crucial for the application to run correctly.