What I have Been Working On
1) Account Creation Page / Logic
I have added some more quality-of-life things to the signup page. This mostly includes some user feedback so that when people create an account, they can get data from the experience. For example, when someone creates an account, a little notification box appears on the bottom of the screen saying "Account Created" and "Log In". The "log in" text then sends you to the dashboard page. Additionally, if you try to create an account and the username or email is in use, a box will appear, with an error message included telling the user what went wrong.
2) User Login Page / Logic
I have now connected the login system making it work with my database (which is now the correct database, and not the test database). This means you can log in and it compares the password and username to see if it is correct. It then creates a JWT token for the user and saves it in local memory so that it can be used to authenticate the user, and then allow for navigation.
3) Dashboard Navigation
I set up dashboard navigation so that when you click on the nav bar on the left it enables and disables these components, making it seem as if you are changing pages/components. But you aren't. I then set it up so that there is a default dashboard panel so that when you use the /dashboard path it shows the correct landing panel. I then added some quality-of-life things like the correct mouse hovering when you are navigating with the nav bar, sign out button (doesn't clear cache, just links), and some other small things.
4) Research Page
I created a research page. I thought that this would be a really great addition to the panel as it can be used to show a whole bunch of currencies directly in the dashboard. Right now it is just a smart table with styling, but it is intended for so much more. I will ultimately be like Coingecko or Coinmarketcap right in the dashboard. But then when you want to trade it it will show you how to buy/trade/swap it within the DeFi ecosystem. It will be getting minute-by-minute data changes and will have descriptions, price feeds, data, and everything else that investors will need to know. No more needing to go to a centralized exchange, all trading, investing, and management will be defi.
5) Memory Cached User Authentication Tools (JWT)
Now that the user token has been added to their local memory, it can be used to authenticate their account, and then be used to provide them access to navigation. Each time they want to go to a page that is user-specific (dashboards, accounts, etc) or requires an account (API requests for transactions, money movement, etc), it will ask for the token as a way to authenticate. Once authenticated, it will provide them access to whatever it is they are trying to do.
Conclusion
I have made some good progress, but I am not anywhere complete. I will keep working on this project as it is a lot of fun, and quite enjoyable. I have some pictures below.


Comments
Post a Comment