₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,273 members, 8,421,104 topics. Date: Friday, 05 June 2026 at 07:10 PM

Toggle theme

My Latest Blog Built With Django And Sveltekit - Webmasters - Nairaland

Nairaland ForumScience/TechnologyWebmastersMy Latest Blog Built With Django And Sveltekit (306 Views)

1 Reply (Go Down)

My Latest Blog Built With Django And Sveltekit by downbad(op): 5:04pm On Aug 31, 2024
This is a cross post from the programming sub forum.

I have been documenting my journey as a web developer here on this forum. My post history would show all the things I've ever built.

My very first project as a web developer was a blog built with Django, vanilla javascript, Jquery, and vanilla css. I posted it here and got some negative remarks which might have discouraged some people just starting out in web development. The link to that blog no longer works but is on my post history if you're interested in seeing the reviews.

Anyway, I've built another blog this time. The technologies used were - Django and SvelteKit. I used Postgresql as the database in development but switched to Sqlite3 in production since I can't afford monthly subscriptions for a PostgreSQL database.

I realize SvelteKit is overkill, but I might decide to scale the website in the future and if that day ever comes, it would be easier to use a frontend framework.

It's going to be a personal blog where I write about my experiences, if you're interested you can subscribe to the newsletter.

Anyway, without further ado, SvelteKit handles rendering of data while Django serves as the server.

The server -

1. retrieves a post by its slug, selects up to four random other posts, and returns their details as a JSON response with truncated content for preview.

2. sends an HTML email notification about a new blog post to all subscribers using the Brevo API, handling errors if the API key is missing or if the email sending fails.

3. creates a time-stamped token for email verification using Django's TimestampSigner. Sends an HTML email with a confirmation link to the provided email address using the Brevo API, handling errors if the API key is missing or if the email sending fails.

4. attempts to verify the time-stamped token to confirm a subscription, creating a new subscriber if the email doesn't already exist, and returns appropriate JSON responses based on the outcome. If the token is invalid or expired, a JSON response with an error message is returned.

5. returns the total number of subscribers; performs a search query on blog post titles and content, returning matching results in JSON format.

And more.

The link to the website is https://rxjourney.com.ng

Please pardon any initial loading delays as the website is hosted on a free plan. I plan to pay for hosting when I can.

Re: My Latest Blog Built With Django And Sveltekit by downbad(op): 5:06pm On Aug 31, 2024
More

Re: My Latest Blog Built With Django And Sveltekit by Lordsugar(f): 2:12pm On Sep 01, 2024
Logical and examination.
Re: My Latest Blog Built With Django And Sveltekit by downbad(op): 2:44pm On Sep 01, 2024
Lordsugar:
Logical and examination.
I'm sorry, what?
Re: My Latest Blog Built With Django And Sveltekit by downbad(op): 8:43am On Oct 04, 2024
added cron-job.
1 Reply

IT Tutor Wanted - Teaching Php, Python, Django And Other Programming LanguagesOnline Banking App Source Code Script Built With PHPWorking With Django234

Genuine & Non-scammer Web Developer WantedWebsite For SaleHttps://store.valpulse.com/1089809/?uid=41852