Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Designing Web APIs with Strapi

You're reading from   Designing Web APIs with Strapi Get started with the Strapi headless CMS by building a complete learning management system API

Arrow left icon
Product type Paperback
Published in Feb 2022
Publisher Packt
ISBN-13 9781800560635
Length 310 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Khalid Elshafie Khalid Elshafie
Author Profile Icon Khalid Elshafie
Khalid Elshafie
Mozafar Haider Mozafar Haider
Author Profile Icon Mozafar Haider
Mozafar Haider
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Section 1: Understanding Strapi
2. Chapter 1: An Introduction to Strapi FREE CHAPTER 3. Chapter 2: Building Our First API 4. Chapter 3: Strapi Content-Types 5. Chapter 4: An Overview of the Strapi Admin Panel 6. Section 2: Diving Deeper into Strapi
7. Chapter 5: Customizing Our API 8. Chapter 6: Dealing with Content 9. Chapter 7: Authentication and Authorization in Strapi 10. Chapter 8: Using and Building Plugins 11. Section 3: Running Strapi in Production
12. Chapter 9: Production-Ready Applications 13. Chapter 10: Deploying Strapi 14. Chapter 11: Testing the Strapi API 15. Other Books You May Enjoy Appendix: Connecting a React App to Strapi

Deploying to Heroku

Heroku is a popular PaaS that enables developers to build, run, and operate applications in the cloud. We are going to use Heroku to deploy our Strapi application. There are two simple requirements:

  • Have a Heroku account set up and the Heroku CLI installed.
  • You need to have Git installed locally.

    Important Note

    Creating Heroku accounts is beyond the scope of this book, so we are going to assume you already have an account set up. If you do not have an account yet, you can take a pause here, head to the Heroku website, create your free account, and configure the Heroku CLI for your operating system.

The first thing we need to do is to create an application on Heroku. There are two ways to do so. The first one is using the Heroku dashboard, and the second one is using the Heroku CLI. We are going to use the CLI, so let's get started:

  1. Launch your terminal and log in to Heroku using the login command heroku login. Press any key to open...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at ₹800/month. Cancel anytime