Giter Club home page Giter Club logo

magazine-api's Introduction

Magazine API (Strapi)

Strapi CMS pre-configured for Next.js Magazine Starter. Deploy to Heroku in one click.

If you want to deploy to any other platform or set up a different upload provider you can use the strapi-template-magazine instead.

Features

  • 4 Content types: Article, Category, Contributor, Pages.
  • Publication system (draft & published).
  • Preview unpublished content: Articles, pages.
  • Slug system
  • 2 Contributor types: Featured, default.
  • SEO and social media friendly
  • Role based access controls

API Routes

  • /articles
  • /categories
  • /contributors
  • /pages

Getting started

Create your own copy of this project by clicking the "Use this template" button and filling the form.

Running locally

Create a folder and git clone from your own repository.

Install the dependencies and start the dev server.

    yarn install
    yarn develop

The strapi server will run on http://localhost:1337

Go to the admin panel (http://localhost:1337/admin), create an account and start adding sample content.

Deployment

First, you'll need a Cloudinary and a Heroku account.

  1. From your copy of the repo click the "Deploy to Heroku" button
  1. Fill the Cloudinary ENV variables.
  2. Deploy
  3. Once is deployed, go to the admin panel e.g. https://yourherokudomain.com/admin and create an account.
  4. Last, go to "Setting" > "Users & permissions plugins" > "Public" > "Permissions" and check find on Article, Category, Contributor and Pages.

Adding Content

The recommended flow for adding new content is:

  • Add contributor
  • Add category
  • Add article or page

Preview Content

Once you have your frontend deployed go to "Settings" > "Preview Content"

Fill it with your info, the URL should look like this. https://<yoursite.com>/api/:contentType-preview?secret=<your-secret>&id=:id

Now, go to any article or page and click on "Preview".

License

MIT License.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.