About
To my friend who is watching this page.
This application is a very simple demo. Not perfect but works well now. It helps me to record my leetcode. You can also use it, of course it's open source. But you really do lol?
In July or August, or maybe later, I wanted to write a simple website or chrome plugin to record my leetcode. Now many months have passed and this application has been upgraded for many times. So do I.
At first, it was written in Java Spring Boot. Deployed on a EC2 and the website was a static website on S3. It works at that time, but I wanted to learn something new. For example, the annoying Next.js.
Next.js is a very powerful framework, easy to route the page, easy to deploy, but how can I make the best practice? I've been thinking this for serveral months, but i'm still confused. All I can do is to make demos and try. At first, I even don't know how to use context and ui library. But now I can. I also got some experiences to use client and server functions to render different part of my pages. I learned how to use nextauth, firebase, cognito to secure the api. I learned how to use serverless API and middlewire. I learned how to use GraphQL. I almost begin to like JavaScript. I don't need to create a heavy server like Spring Boot.
- clone this repo. Create a vercel account and deploy this project on vercel. Then create a Postgres database on your vercel dashboard. Set variables for your project.
- Oh you also need to create firebase project and use the authentication. I choose to login with email and password. Firebase only helps to secure API. The frontend, database, and apis are all in Vercel.
- You can also contact me for help. Thanks for watching!
For those who wants to try this demo.