/turquoise-cobra-3-backend

A Backend For a Blogging Website Built in Laravel

Primary LanguagePHP

#Requirements

  • Docker
  • WSL (windows)
  • Composer installed

Steps

  • Clone this repo
  • cd into the folder
  • Run composer install
  • Run npm install
  • Run npm run dev
  • Run php artisan sail:install
    • Select pgsql (option 1) and hit enter
  • run ./vendor/bin/sail up -d
  • run php artisan migrate to setup the database
  • Goto http://localhost and check if the site is working, It should be a laravel welcome page.
  • Click Register From there and register on the app
  • Checkout the various themes (icon in top right corner)
  • Make a blog, update your avatar image from profile management (your name in the top right corner)

API

  • I've created 4 API endpoints
    • localhost/api/posts
    • localhost/api/posts/{id}
    • localhost/api/tags
    • localhost/api/tags/{id}
  • Test them with post man
  • Integrate with Front end