00:02
Okay, so to pick right back up
00:06
where we left off in the last lesson,
00:08
let's go ahead and get a user registered
00:09
inside of our application
00:10
and then go over what exactly our application entails
00:14
so that we're familiar with what we're adding an API for.
00:16
So I'm gonna call my user testuser1
00:19
with an email of [email protected]
00:22
and then something for the password.
00:24
Let's go ahead and hit register here,
00:25
which will take us to our create an organization screen.
00:28
I'm just gonna call this testorg1
00:31
and create that organization
00:32
and then we're taken into it
00:34
where we see the courses for this organization
00:36
and currently we do not have any.
00:38
So overall, what this application allows us to do
00:40
is create courses, modules within those courses
00:43
and lessons within those modules,
00:45
hence the name plot my course.
00:47
It allows us to plot out
00:48
what a course structure would look like
00:50
or a syllabus if you're familiar with that term.
00:52
Each course has a difficulty
00:54
and then each course and lesson has an access level
00:57
and then all three course, module and lesson have a status.
01:00
So these difficulty, status and access level pages
01:03
allow us to create difficulties, edit difficulties,
01:06
delete them, reorder them
01:08
and then all of that is specific to the organization itself.
01:11
So if we created a separate organization,
01:13
we can have a completely different set of difficulties,
01:16
statuses or access levels.
01:18
Access levels are kind of the tier of access.
01:21
So whether or not it's free or paid,
01:23
statuses are the current status that the item is within.
01:26
So not started, planned, recorded, edited and done
01:28
are the defaults there.
01:30
And then difficulties are obviously how difficult it is.
01:33
So easy, medium, hard and expert are the defaults there.
01:36
Within our courses, we can add in a brand new course.
01:39
I'll call this my first course
01:42
where we can select the access level,
01:43
status and difficulty out of the box.
01:45
We'll leave all of those as defaults and add our course in.
01:48
Here we're taken to the actual course show page
01:51
for the course that we've just created
01:52
where we can see its status, difficulty and access level.
01:54
Click on any one of these to automatically change it
01:57
to whatever value we see fit for all three.
02:00
In addition to that, we can edit the course,
02:02
delete it, add in a new module.
02:04
So my first module where that also has a status field
02:09
and then lessons.
02:10
So my first lesson,
02:13
we can set a designated publish at date and time
02:16
and then its access level and status there too.
02:18
So I'm gonna fill out just some very basic information here
02:21
so that we have some simple stuff to work with
02:23
out of the box with our API.
02:25
So I'm gonna create two modules.
02:27
We'll call this one my second module
02:28
and then three lessons.
02:30
So we'll call this one my third lesson
02:32
and I'm gonna rename this one to my second lesson.
02:35
Okay, and then just like with our difficulty,
02:37
status and access levels,
02:39
all of these can be resorted as well.
02:41
So if I wanted my third lesson to move up into module one,
02:44
just do that like so,
02:45
just drag and drop with that little arrow over there.
02:48
Each module is given a number
02:50
which is the major number within this list.
02:52
And then each lesson is given a number as well,
02:54
which is the minor number in this list.
02:56
So our first lesson in the first module is 1.0.
02:59
Then the second lesson in the first module is 1.1.
03:02
And then our first lesson in the second module is 2.0
03:06
and it will continue so on and so forth in that manner.
03:08
Just like with our series,
03:09
these two also have the ability to change their status
03:12
and access level off the fly
03:14
with these little dropdown menus.
03:16
As covered in the introduction,
03:17
the one and only area that we are going to be altering
03:20
is the organization settings.
03:22
So let's take a look real quick
03:23
through all of these settings.
03:24
So we have our profile settings,
03:26
which just allows our user to change their name,
03:28
account settings, which allows the user
03:29
to change their email as well as delete their account.
03:32
And then our organization settings,
03:34
which we briefly saw in the introduction
03:35
where we can update the organization,
03:37
invite and manage existing members and new members.
03:40
And then the new panel that we will be adding,
03:42
which is not yet inside of this application
03:44
to manage our access tokens for the organization.
03:47
And then if at any point throughout any of these pages,
03:49
you want to edit the organization,
03:51
you can also do that right up here.
03:52
You can also delete it and add a new organization
03:55
as well for your user.
03:56
The last thing that we're going to do
03:58
to familiarize ourselves with this project
04:00
is to take a quick look at the schema
04:02
to see exactly what each of those entities
04:04
actually looks like in terms of their columns.
04:06
We're not gonna spend too much time there.
04:08
We're just gonna do a quick overview.
Join The Discussion! (0 Comments)
Please sign in or sign up for free to join in on the dicussion.
Be the first to Comment!