Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mh-anwar/birthday
Just a birthday card generator?
https://github.com/mh-anwar/birthday
Last synced: 6 days ago
JSON representation
Just a birthday card generator?
- Host: GitHub
- URL: https://github.com/mh-anwar/birthday
- Owner: mh-anwar
- Created: 2023-08-15T21:37:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-28T07:54:38.000Z (7 months ago)
- Last Synced: 2024-05-28T18:12:12.545Z (7 months ago)
- Language: HTML
- Homepage: https://birthday.anwar.app
- Size: 139 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Birthday Card Generator
This project generates a relatively simple birthday card.It's purpose is not just to generate a birthday card, but to experiment with URL's and Github's hosting. The way it works, is that it takes parameters for a birthday card, then generates a URL at `b.anwar.app` for it. `b.anwar.app` redirects to `birthday.anwar.app` which is also hosted on Github Pages. At any point, in this routing process, Github Pages, _should_ throw a 404 Resource Not Found error, because the URL has a pathname. However, because the 404.html is customizable, it instead either redirects in the case of `b.anwar.app`, or shows the birthday card!
Note: This project is just a fun experiment, the 404 can be avoided simply by passing query parameters to the URL, but this way is more fun. Deployment can also simply be done to `/docs` instead of `/dist` but this utilizes a Bash script to deploy `dist/` to `docs/`.
# Usage
- `npm run build` to build the app for production, using Vite
- `npm run deploy` to build and deploy the app to `/docs` for Github Pages