Update getting started
Before Width: | Height: | Size: 206 KiB |
BIN
docs/3.x.x/en/assets/getting-started_add_entry.png
Normal file
After Width: | Height: | Size: 123 KiB |
BIN
docs/3.x.x/en/assets/getting-started_allow_access.png
Normal file
After Width: | Height: | Size: 288 KiB |
Before Width: | Height: | Size: 222 KiB |
BIN
docs/3.x.x/en/assets/getting-started_create_content_type.png
Normal file
After Width: | Height: | Size: 145 KiB |
Before Width: | Height: | Size: 208 KiB |
BIN
docs/3.x.x/en/assets/getting-started_list_fields.png
Normal file
After Width: | Height: | Size: 135 KiB |
BIN
docs/3.x.x/en/assets/getting-started_manage_role_home.png
Normal file
After Width: | Height: | Size: 120 KiB |
Before Width: | Height: | Size: 206 KiB |
Before Width: | Height: | Size: 198 KiB |
BIN
docs/3.x.x/en/assets/getting-started_no_content_type.png
Normal file
After Width: | Height: | Size: 128 KiB |
BIN
docs/3.x.x/en/assets/getting-started_no_entry.png
Normal file
After Width: | Height: | Size: 122 KiB |
BIN
docs/3.x.x/en/assets/getting-started_register.png
Normal file
After Width: | Height: | Size: 114 KiB |
Before Width: | Height: | Size: 209 KiB |
BIN
docs/3.x.x/en/assets/getting-started_with_entry.png
Normal file
After Width: | Height: | Size: 131 KiB |
@ -1,6 +1,6 @@
|
||||
# Quick start
|
||||
|
||||
This section explains how to handle Strapi for the first time.
|
||||
This section explains how to handle Strapi for the first time, ([check out our tutorial video](https://www.youtube.com/watch?v=yMl5IcFHA74)).
|
||||
|
||||
**Table of contents:**
|
||||
- [Create your first project](#create-your-first-project)
|
||||
@ -50,10 +50,23 @@ strapi start
|
||||
|
||||

|
||||
|
||||
Now that your app is running let's see how to [create your first api](#create-your-first-api).
|
||||
Now that your app is running let's see how to [create your first user](#create-your-first-user).
|
||||
|
||||
***
|
||||
|
||||
## Create your first user
|
||||
|
||||
In order to use the admin panel and to consume your API you first need to register your first user. This process only happens once if you don't have any user table created and is made to create the `admin user` that has all the permissions granted for your API.
|
||||
|
||||
If your using MongoDB for your database you don't have to create your table manually (it's already handled by Strapi) otherwise you'll have to create your user table first.
|
||||
|
||||
To create your first user, start your server (`strapi start`) and go to : http://localhost:1337/admin/plugins/users-permissions/auth/register.
|
||||
|
||||

|
||||
|
||||
|
||||
Now that your first user is registered let's see how to [create your first api](#create-your-first-api).
|
||||
***
|
||||
## Create your first API
|
||||
|
||||
To create your first API, start your server (`strapi start`) and go to : http://localhost:1337/admin.
|
||||
@ -62,11 +75,11 @@ At this point, your application is empty. To create your first API is to use the
|
||||
|
||||
**#1 —** Go to the **Content Type Builder** plugin.
|
||||
|
||||

|
||||

|
||||
|
||||
**#2 —** Create a Content Type name `Product` and submit the form.
|
||||
|
||||

|
||||

|
||||
|
||||
**#3 —** Add three fields in this Content Type.
|
||||
|
||||
@ -74,7 +87,7 @@ At this point, your application is empty. To create your first API is to use the
|
||||
- A `text` field named `description`.
|
||||
- A `number` field named `price` (with `float` as number format).
|
||||
|
||||

|
||||

|
||||
|
||||
**#4 —** Save. That's it!
|
||||
|
||||
@ -96,21 +109,31 @@ After creating [your first Content Type](#create-your-first-api), it would be gr
|
||||
|
||||
**#1 —** Go to the [**Product list**](http://localhost:1337/admin/plugins/content-manager/product/) by clicking on the link in the left menu (generated by the **Content Manager** plugin).
|
||||
|
||||

|
||||

|
||||
|
||||
**#2 —** Click on the button `Add New Product` and fill the form.
|
||||
|
||||

|
||||

|
||||
|
||||
**#3 —** Save! You can edit or delete this entry by clicking on the icons at the right of the row.
|
||||
|
||||

|
||||

|
||||
|
||||
***
|
||||
|
||||
## Consume your API
|
||||
|
||||
Your API is now ready and [contains data](#manage-your-data). At this point, you'll probably want to use this data in mobile or desktop applications.
|
||||
In order to do so, you'll need to allow access to other users (identified as 'Guest').
|
||||
|
||||
**1 -** Go to the [** Auth & Permissions View**](http://localhost:1337/admin/plugins/users-permissions/roles) by clicking on **Auth & Permissions** link in the left menu and click on the **Guest Role** item.
|
||||
|
||||

|
||||
|
||||
**2 -** Manage your APIs permissions in the **Permissions** section of the [** Edit Guest Role view**](http://localhost:1337/admin/plugins/users-permissions/roles/edit/1) by enabling or disabling specific actions.
|
||||
|
||||

|
||||
|
||||
|
||||
### List entries (GET)
|
||||
|
||||
|