How To Build A Movie Database Api With Strapi

how To Build A Movie Database Api With Strapi
how To Build A Movie Database Api With Strapi

How To Build A Movie Database Api With Strapi Install strapi. open up your terminal on your computer and navigate to the directory where you want to install your project. cd directoryname. strapi can be installed via two package managers, npm and yarn. i personally enjoy npm but the choice is up to you. #npm. npx create strapi app moviedb quickstart. #yarn. This creates a movie api folder, and this is our strapi backend. strapi will install the dependencies and start the server for us using the command strapi develop. the strapi server will be started at localhost:1337, and the url localhost:1337 admin will automatically be loaded in our browser by strapi.

how To Build A Movie Database Api With Strapi
how To Build A Movie Database Api With Strapi

How To Build A Movie Database Api With Strapi In order to make the end point accessible only to the authenticated users, go to the settings > roles > authenticated. to be able to publicly access the end point, please go to the setting > roles > public in the strapi dashboard. please, check the postsreport for the posts report route and hit the save button. In order to create a new project with strapi, run the following command in your terminal: $ npx create strapi app@latest my strapi blog quickstart. or $ yarn create strapi app my strapi blog quickstart. you can choose to modify the name of your project with whatever name you want. in my case, i have called the name of my own project my. It can be installed globally using npm with the following command. $ npm i g create strapi app. using create strapi app is simple; just pass the name of the project. quickstart will create a project with a default setting. create strapi app my blog quickstart. you must create an admin user before using strapi. The rest api allows accessing the content types through api endpoints. strapi automatically creates api endpoints when a content type is created. api parameters can be used when querying api endpoints to refine the results. all content types are private by default and need to be either made public or queries need to be authenticated with the.

Comments are closed.