09 Oct 2022 · 3 min read
Kecil, part 0 - motivation and plan
Kecil means small in Indonesian, which is the whole joke: the app makes links smaller. It is a link shortener built from scratch with HTML, CSS and vanilla JS on the front, Node.js and MySQL on the back, and no framework doing the thinking for me.
I picked a link shortener because it is small enough to finish and complete enough to teach the whole stack. Auth, a database, an API, a redirect path, a server, a domain, TLS. Nothing exotic, everything necessary.
The plan
- Project set-up
- Database creation
- Database management helpers
- Frontend
- API endpoints and redirection
- Connecting the frontend to the database
- User accounts and sessions
- Theme
- Deploy to a Digital Ocean droplet
- Domain and HTTPS
The code for each part lives on its own branch, so you can start anywhere and still have something that runs.