₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,085 members, 8,420,247 topics. Date: Thursday, 04 June 2026 at 02:33 PM

Toggle theme

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

Nairaland ForumScience/TechnologyProgrammingMy Latest Blog Built With Django And Sveltekit (1040 Views)

1 Reply (Go Down)

My Latest Blog Built With Django And Sveltekit by downbad(op): 4:41pm On Aug 31, 2024
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): 4:45pm On Aug 31, 2024
More

Re: My Latest Blog Built With Django And Sveltekit by qtguru(m): 12:13pm On Sep 01, 2024
Doesn't Sveltekit already handle Server activities but great work regardless, Svelte can always proxy to Django to fetch the data so still works both ways.
Re: My Latest Blog Built With Django And Sveltekit by Karleb(m): 12:32pm On Sep 01, 2024
This is nice. It's people like you that will reap the reward when the job market comes back to normal.

In the mean time, you need to start applying to internships and junior roles.

I think you should also ditch svelte for react or vue. It's not widely accepted yet.

Can you send the github link so we can check it out.
Re: My Latest Blog Built With Django And Sveltekit by downbad(op): 12:59pm On Sep 01, 2024
qtguru:
Doesn't Sveltekit already handle Server activities but great work regardless, Svelte can always proxy to Django to fetch the data so still works both ways.
Yes, I've read that SvelteKit can do server actions, but I wanted to show I could work with a Django backend and SvelteKit frontend separately.

This way I could easily just switch the frontend anytime and just call the django server, and it would work just as well.

Or switch the server to a Node js server, for example, and the frontend would be mostly the same and I'd just change the fetch urls.
Re: My Latest Blog Built With Django And Sveltekit by downbad(op): 1:12pm On Sep 01, 2024
Karleb:
This is nice. It's people like you that will reap the reward when the job market comes back to normal.

In the mean time, you need to start applying to internships and junior roles.

I think you should also ditch svelte for react or vue. It's not widely accepted yet.

Can you send the github link so we can check it out.
Thanks for the kind words. Yes, I've already been applying for jobs, both local and foreign based, but I've failed to land any yet. Even small jobs I know I am capable of doing, I can't land anything. I just keep pushing hoping to get my lucky break soon.

I know that React, Vue and Angular are the top 3 most popular frontend Javascript frameworks/libraries, but I did my research when trying to decide on which to use, and Svelte just felt more intuitive to me. It had less boilerplate codes in comparison to the other big 3.

For the past two years, it has been the most loved web technology in the developer surveys conducted by Stack Overflow. The syntax is just clean, and I jumped on it immediately.

Yes, I know that React dominates the job market, but I was looking at using something I felt more comfortable with as it would make development more enjoyable for me; besides, the concepts are similar across these frameworks and the skills learnt in one can easily translate.
Re: My Latest Blog Built With Django And Sveltekit by Lordsugar(f): 1:45pm On Sep 01, 2024
The analysis is wellframed
Re: My Latest Blog Built With Django And Sveltekit by Karleb(m): 2:12pm On Sep 01, 2024
downbad:
Thanks for the kind words. Yes, I've already been applying for jobs, both local and foreign based, but I've failed to land any yet. Even small jobs I know I am capable of doing, I can't land anything. I just keep pushing hoping to get my lucky break soon.

I know that React, Vue and Angular are the top 3 most popular frontend Javascript frameworks/libraries, but I did my research when trying to decide on which to use, and Svelte just felt more intuitive to me. It had less boilerplate codes in comparison to the other big 3.

For the past two years, it has been the most loved web technology in the developer surveys conducted by Stack Overflow. The syntax is just clean, and I jumped on it immediately.

Yes, I know that React dominates the job market, but I was looking at using something I felt more comfortable with as it would make development more enjoyable for me; besides, the concepts are similar across these frameworks and the skills learnt in one can easily translate.
If you are working for somebody or a company, they wouldn't care what you are most comfortable with. Most companies will use either react or vue. So go with either, I'd recommend react. It will greatly increase your chances of employment.

Keep applying. You'd get the job.

What platforms are you using though?
Re: My Latest Blog Built With Django And Sveltekit by downbad(op): 2:46pm On Sep 01, 2024
Lordsugar:
The analysis is wellframed
Thanks, which one though?
Re: My Latest Blog Built With Django And Sveltekit by downbad(op): 2:53pm On Sep 01, 2024
Karleb:
If you are working for somebody or a company, they wouldn't care what you are most comfortable with. Most companies will use either react or vue. So go with either, I'd recommend react. It will greatly increase your chances of employment.

Keep applying. You'd get the job.

What platforms are you using though?
If I'm working for a company, I'd take on a backend role.

If I'm working as a freelance dev doing full-stack, I'm free to use whatever frontend tech want, and it will be Svelte.

The platforms are Upwork, Indeed and Wellfound. No luck yet in either.

I tried Fiverr, but my profile never got approved. Some people I know couldn't get their Fiverr approved either.
Re: My Latest Blog Built With Django And Sveltekit by Karleb(m): 3:39pm On Sep 01, 2024
downbad:
If I'm working for a company, I'd take on a backend role.

If I'm working as a freelance dev doing full-stack, I'm free to use whatever frontend tech want, and it will be Svelte.

The platforms are Upwork, Indeed and Wellfound. No luck yet in either.

I tried Fiverr, but my profile never got approved. Some people I know couldn't get their Fiverr approved either.
Try LinkedIn and indeed.
Re: My Latest Blog Built With Django And Sveltekit by downbad(op): 3:49pm On Sep 01, 2024
Karleb:
Try LinkedIn and indeed.
I mentioned Indeed
Re: My Latest Blog Built With Django And Sveltekit by Kaczynski: 8:02pm On Sep 01, 2024
Nice


Which host are you using fur this??
Re: My Latest Blog Built With Django And Sveltekit by fastanddubious(m): 8:05pm On Sep 01, 2024
Karleb:
This is nice. It's people like you that will reap the reward when the job market comes back to normal.

In the mean time, you need to start applying to internships and junior roles.

I think you should also ditch svelte for react or vue. It's not widely accepted yet.

Can you send the github link so we can check it out.
Can you please explain about the job market coming back to normal? When did it go abnormal? What will happen when it does come back to normal?
Re: My Latest Blog Built With Django And Sveltekit by downbad(op): 9:53pm On Sep 01, 2024
Kaczynski:
Nice


Which host are you using fur this??
Pythonanywhere for Django
Render for SvelteKit
Re: My Latest Blog Built With Django And Sveltekit by A50boner: 9:28am On Sep 02, 2024
great job bro, however if you're looking for more opportunities you should lean towards react or vue more. the job market is not too friendly for now. if i were you i would network more with other devs because these days more jobs are gotten through referrals within your network. i'm also looking for more opportunities as i started solo as well. although i'm employed but i'm being paid peanuts.
Re: My Latest Blog Built With Django And Sveltekit by downbad(op): 12:07pm On Sep 02, 2024
A50boner:
great job bro, however if you're looking for more opportunities you should lean towards react or vue more. the job market is not too friendly for now. if i were you i would network more with other devs because these days more jobs are gotten through referrals within your network. i'm also looking for more opportunities as i started solo as well. although i'm employed but i'm being paid peanuts.
If I'm working in a company I'd take a backend role.

Thanks for the compliments.
Re: My Latest Blog Built With Django And Sveltekit by A50boner: 12:30pm On Sep 02, 2024
downbad:
If I'm working in a company I'd take a backend role.

Thanks for the compliments.
you're welcome
Re: My Latest Blog Built With Django And Sveltekit by downbad(op): 12:35pm On Sep 02, 2024
A50boner:
you're welcome
How did you get your job? 9ja based?
Re: My Latest Blog Built With Django And Sveltekit by A50boner: 3:28pm On Sep 02, 2024
downbad:
How did you get your job? 9ja based?
yeah, through linkedin.
Re: My Latest Blog Built With Django And Sveltekit by downbad(op): 3:38pm On Sep 02, 2024
A50boner:
yeah, through linkedin.
Alright, cool.
Re: My Latest Blog Built With Django And Sveltekit by RyanZayne: 11:09pm On Sep 08, 2024
This is wonderful tbh

If you love svelte's simplicity, you might as well be interested in Astro for your usecase.. since it's majorly content based
Re: My Latest Blog Built With Django And Sveltekit by downbad(op): 1:05am On Sep 09, 2024
RyanZayne:
This is wonderful tbh

If you love svelte's simplicity, you might as well be interested in Astro for your usecase.. since it's majorly content based
Thanks.

There are lots of technologies out there, man. Can't learn them all.
Re: My Latest Blog Built With Django And Sveltekit by Slimdan360: 8:14am On Sep 09, 2024
I’m not going to lie, the front end of ur blog is wack. Compare it to other blog sites and I’m sure u Will understand what I’m saying. Secondly, I feel you are too stubborn and rigid. Getting a tech job requires great preparation. There more job posts on react and you’ve been advised to pick up the framework, yet you keep insisting that it’s either svelte or nothing, and if at all opportunity comes, you had choose to work as a back end developer. Lol, comrade, you got no choice. There are no millions of jobs out there so to easily get employed, you have to be prepared to take up what ever role opportunity throws at you.
Re: My Latest Blog Built With Django And Sveltekit by downbad(op): 5:58pm On Sep 09, 2024
Slimdan360:
I’m not going to lie, the front end of ur blog is wack. Compare it to other blog sites and I’m sure u Will understand what I’m saying. Secondly, I feel you are too stubborn and rigid. Getting a tech job requires great preparation. There more job posts on react and you’ve been advised to pick up the framework, yet you keep insisting that it’s either svelte or nothing, and if at all opportunity comes, you had choose to work as a back end developer. Lol, comrade, you got no choice. There are no millions of jobs out there so to easily get employed, you have to be prepared to take up what ever role opportunity throws at you.
There are jobs for Svelte. I'm not a frontend developer.
Re: My Latest Blog Built With Django And Sveltekit by downbad(op): 8:43am On Oct 04, 2024
added cron-job.
1 Reply

I Need Help With DjangoDjango And Flask Users, Your Help Is Needed PleaseBuilt A To-do-list Web App With Django And Bootstrap.234

Developer Of Fortran Dead At 82Any Vb 6.0 User Here?Wxwidgets Coderz Any1?