This is the code repository for Designing Web APIs with Strapi, published by Packt.
Get started with the Strapi headless CMS by building a complete learning management system API
Strapi is a Node.js-based, flexible, open-source headless CMS with an integrated admin panel that anyone can use and helps save API development time. APIs built with Strapi can be consumed using REST or GraphQL from any client. With this book, you'll take a hands-on approach to exploring the capabilities of the Strapi platform and creating a custom API from scratch.
This book covers the following exciting features:
- Explore Strapi and understand how it works
- Define content types to build APIs quickly and efficiently
- Understand authentication and authorization in Strapi
- Create production-ready APIs with Strapi
- Deploy the Strapi API to various environments, including Heroku and AWS
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, Chapter03.
The code will look like the following:
{
"data": {
"title": "Content types in Strapi",
"slug": "content-types-in-strapi",
"type": "text",
"contents": "Content types in Strapi allows us to
define the entities that make up the api",
"classroom": 1
}
}
Following is what you need for this book:
This book is for backend and frontend JavaScript developers. Experienced API developers will learn a new, fast, and flexible way of building APIs, while frontend developers will be able to take a step toward becoming full-stack developers by learning how to leverage Strapi for building APIs quickly. Basic knowledge of JavaScript and REST API concepts is assumed.
With the following software and hardware list you can run all code files present in the book (Chapter 1-12).
Chapter | Software required | OS required |
---|---|---|
1-11 | Node.js 16 | Windows, Mac OS X, and Linux (Any) |
1-11 | Npm 8 | Windows, Mac OS X, and Linux (Any) |
1-11 | Yarn 1.22 | Windows, Mac OS X, and Linux (Any) |
The main
branch has the latest state of the project. Use the tags to access specific chapter's code
If you would like to use this repo as a start point, you can create a branch from chapter_1
and follow along with the book from there
1- Clone the repo
git clone [email protected]:PacktPublishing/Building-APIs-with-Strapi.git
OR
git clone https://github.com/PacktPublishing/Building-APIs-with-Strapi.git
2- Navigate to the project root folder
cd Building-APIs-with-Strapi
3- Create new branch from chapter_1
git checkout BRANCH_NAME chapter_1
4- Install the dependencies
yarn install
5- Start the development server
yarn develop
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.
Khalid Elshafie is an experienced, senior full stack developer/software engineer with over 10 years of experience working across multiple frontend and backend technologies involved in designing and developing scalable web and mobile applications using multiple technologies, as well as in a variety of workplaces, from start-ups to larger consultancies. Khalid's passion for software engineering extends to the creation of barmaga.io, with Mozafar, where he has 45+ hours of video content on JavaScript, React.js, AWS and Serverless, Node.js, and Strapi. He also has a well-established YouTube channel with content focused on teaching programming.
Mozafar Haider is a senior full stack engineer with over 15 years of experience working in organizations ranging from early-stage start-ups to scale-ups and corporates, in Barcelona, London, and Glasgow, among other places. Heβs passionate about teaching coding, especially to groups under-represented in tech, and was one of the co-founders of a coding school for refugees based in Glasgow. He also created, along with Khalid, barmaga.io, a platform for teaching coding in Amharic, Arabic, and Swahili.
If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.