This project implements a user authentication system using Django and React. It includes user registration, login, logout, and fetching user data. Authentication is handled using JWT (JSON Web Tokens) and HTTP-only cookies for improved security. The application's frontend is styled using Bootstrap.
The project consists of two directories:
client
: Contains the React applicationserver
: Contains the Django backend
- Add an input field for the user's Ethereum wallet address to the registration page. When a user registers an account, this wallet address must be saved to the database.
- After login, the homepage must show the balance of the user's Ethereum wallet address.
- User registration with email, password, and Ethereum wallet address
- User login and logout
- Fetching and displaying user data
- Displaying Ethereum wallet balance on the homepage after login
- The backend uses Django REST Framework to handle API requests.
- User authentication is managed using JWT tokens stored in HTTP-only cookies.
- The Ethereum wallet address is stored in the user model in the database.
- The frontend uses React for the user interface and Axios for API calls.
- The Ethereum wallet balance is fetched using a third-party API (implementation details may vary).