This is a full-stack website from an Udemy course.
The original project is built with JavaScript, Express, MongoDB, and Pug templates.
I followed the course, but took the liberty to rebuild the website using the tools of my own choice - TypeScript
and Next.js
.
- The entire frontend is rebuilt using Next.js, leveraging React server/client component and TypeScript.
- The backend is rewritten with TypeScript, which is hosted in another repository.
- The database used is MongoDB, paired with Mongoose and TypeScript for better data modeling.
I learned Rust a few months ago out of the hype around it, and fell in love with its type system and compiler driven development approach.
It was hard work navigating all the compiler warnings and errors. However, it paid off in the long run. Every step of the way, the flow of data was much more clear and variables were used with an understanding of what they can or cannot be. This had an immediate impact, significantly reducing the amount of time spent tracing back error stacks.
- Compiler-driven development with TypeScript
- Server side rendering, leveraging Next.js and React Server Component
- Better data modeling and validation with mongoose and TypeScript, on top of MongoDB
- Httponly cookie and JSON Web Token are combined to delivery safer user validation.
- Seamless payment processing with Stripe and webhooks.
- Use the following card detail to place an order live:
- Card number: 4242 4242 4242 4242
- Exp: any data that later than the day you place the order
- Name: any name
- Live Site URL: Vercel
- TypeScript
- React server component
- Next
- Tailwind css
- Node
- Express
- MongoDB & Mongoose
- LinkedIn - Hangyuan Liu
- Frontend Mentor - @llhyuan