Skip to player
Skip to main content
Skip to footer
Search
Connect
Watch fullscreen
Like
Bookmark
Share
Add to Playlist
Report
Vue.js & Django Social Scheduler: create a social post
InterTuts
Follow
8/30/2024
This video explains how is created a social post and saved in the database. For now, the selected accounts aren't saved. Will be possible in near future.
Category
🦄
Creativity
Transcript
Display full video transcript
00:00
In this video, I'm going to explain how I'm creating the social posts using Vue.js and Django.
00:13
Right now it's not possible to save the selected social accounts.
00:22
For now, I will just create a post with text and image.
00:41
To create the post, I will click on this button.
00:49
The post was created.
00:53
The post composer was built in Vue.
01:00
When I enter the text into the text area, the ReactiveVModel binds the text area to the ReactivePost object and updates the text field here.
01:29
The post object has even the image field which contains the selected image.
01:51
When the user selects an image, I have this listener which sends the selected image to this function and the image is uploaded on the server.
02:22
If the image is saved, I will save even its path to the post image field.
02:37
When the user clicks on the publish button, I have a listener for clicks which calls this function.
03:01
Here I'm using Axios to send the post text and image to this URL.
03:13
This URL is for backend.
03:19
Here, and it directs the request to the posts app.
03:34
Here.
03:40
And the request is handled by GridPostView class.
03:55
Here I have a PostSerializer.
04:04
To serialize the received data.
04:15
Here I'm verifying even if the user is authenticated.
04:24
Here I'm using the Serializer.
04:28
Here I'm verifying if the data is valid.
04:35
Then I'm getting the validated text and image and using the post model to save the post.
04:58
Here I'm getting the validated text and image and using the post model to save the post.
Recommended
2:28
|
Up next
Pagination in React & Next JS
InterTuts
12/20/2024
1:47
React & Node.js Social Chat: unsubscribe Facebook Pages from application's webhook
InterTuts
12/18/2024
1:22
How to use notifications alerts in React & Next JS
InterTuts
12/18/2024
3:30
React & Node.js Social Chat: how to connect Facebook Pages to receive direct messages
InterTuts
12/18/2024
1:56
How to convert a string to MongoDB ObjectId in Node.js
InterTuts
12/17/2024
2:05
How to bulk insert or update data in MongoDb with Mongoose
InterTuts
12/16/2024
1:41
How to retrieve URL's query parameters in Next.js(CSR)
InterTuts
12/15/2024
3:27
How to handle dynamic route parameters in Express.js
InterTuts
12/14/2024
1:42
How to retrieve and pass dynamic route segment between components in Next.js & React
InterTuts
12/14/2024
2:00
How to create vertical tabs in Chakra UI
InterTuts
12/14/2024
1:53
How to create a modal in Chakra UI & React
InterTuts
12/13/2024
0:49
React & Node.js Social Chat: Introduction
InterTuts
12/11/2024
3:02
How to use recipes in Chakra UI & Next.JS
InterTuts
12/11/2024
1:33
How to setup global fonts in Chakra UI & Next.JS
InterTuts
12/10/2024
2:30
How to setup global colors in Chakra UI & Next.JS
InterTuts
12/10/2024
1:54
Serializing big strings impacts deserialization performance (consider using Buffer instead and decode when needed)
InterTuts
12/9/2024
1:46
Angular & ASP.NET Core Web API Authentication: how is working registration and sign in using Google API
InterTuts
12/7/2024
4:30
Angular & ASP.NET Core Web API Authentication: how is working registration
InterTuts
12/7/2024
5:10
Angular & ASP.NET Core Web API Authentication: how is working the password reset
InterTuts
12/7/2024
2:44
Angular & ASP.NET Core Web API Authentication: how is working remember me login
InterTuts
12/7/2024
4:37
Angular & ASP.NET Core Web API Authentication: how is working login
InterTuts
12/7/2024
4:48
How to validate an email address in ASP.NET Core Web API using a custom attribute
InterTuts
11/30/2024
3:29
How to reset a reactive form in Angular 19
InterTuts
11/29/2024
3:54
How to validate Angular Material reactive form in Angular 19
InterTuts
11/27/2024
2:12
How to test .http files with REST Client
InterTuts
11/25/2024