This project is a front-end application for a simple authentication system. It provides user-friendly interfaces for Sign Up, Sign In, and Profile Management. The app is styled with modern design principles and interacts with an in-memory backend API.
- Sign Up: Create a new account.
- Sign In: Log in and receive a token.
- Profile Management: View user information after authentication.
- Responsive Design: Optimized for both desktop and mobile devices.
- Notification System: Success and error notifications for user actions.
- Frontend: https://tridibs-in-memory-authentication.netlify.app
- Backend API: https://tridibs-in-memory-authentication-api.onrender.com
git clone https://github.com/Tridib11/Authentcation-UI.git
Simply open the index.html
file in your preferred browser to view the app locally.
Make sure the backend API is running and accessible at https://tridibs-in-memory-authentication-api.onrender.com.
For backend details, visit the Backend GitHub Repository.
.
├── index.html # Main HTML file
├── style.css # Embedded in <style> tags
├── README.md # Documentation
- Allows users to create an account by providing a username and password.
- Sends a
POST
request to/signup
.
- Authenticates users and retrieves a JWT token.
- Sends a
POST
request to/signin
.
- Fetches user details using the JWT token.
- Sends a
GET
request to/me
.
- Clears the JWT token and returns to the Sign In page.
- HTML5: Structure and layout.
- CSS3: Styling and responsive design.
- JavaScript: Client-side logic and API interactions.
- Axios: HTTP requests to the backend API.
- LocalStorage: Stores the JWT token for authenticated sessions.
The app includes a built-in notification system to inform users about the success or failure of their actions, such as:
- Successful sign-up or sign-in
- Errors during API calls
- Profile fetching issues
This project is open-source and available under the MIT License.
Tridib
GitHub