Coding assessment for Nerdevs recruitment process.
See the backend repository here.
- User authentication (login, signup)
- Account activation via email
- Conditional rendering based on user authentication
- Local storage management for user sessions
- Logout functionality
Check out the demo of the project on YouTube:
Watch the Demo on YouTube
Follow these steps to get the project running locally.
Ensure you have the following installed:
git clone https://github.com/MDAmir159/Auth-Server-Frontend.git
cd Auth-Server-Management-Task2
npm install
npm run dev
The application will be running on http://localhost:5173
.
The project uses local storage to keep track of user authentication. The key-value pair saved is:
{
"nerd-dev": {
"isAuthenticated": true
}
}
A brief overview of the project structure (mentioned only the necessary ones):
.
├── public
├── src
│ ├── assets
│ ├── components
│ ├── router
│ │ ├── index.ts
│ ├── views
│ │ ├── HomeView.vue
│ │ ├── LoginView.vue
│ │ ├── SignupView.vue
│ │ ├── AboutView.vue
│ │ └── ActivateView.vue
│ ├── App.vue
│ └── main.ts
├── package.json
├── tsconfig.json
└── README.md
- Vue.js (with TypeScript)
- Vue Router for routing
- Ant Design Vue for UI components
- Local Storage for user session management
- Node.js (backend, if applicable)
POST /auth/login
: For user loginPOST /auth/signup
: For user signupGET /auth/activate/:token
: For account activation