Giter VIP home page Giter VIP logo

sdp-api's Introduction

Laravel Logo

Mukellef Backend Challenge Case Study

Developer Notes

  • .env file tracked/pushed intentionally
  • Developed on Windows 11 - WSL2 - Ubuntu Subsystem

Requirements

How To Deploy

For first time only !

  • git clone https://github.com/ErayerA/sdp-api.git
  • cd sdp-api
  • docker compose up -d --build
  • docker compose exec phpmyadmin chmod 777 /sessions
  • docker compose exec php bash
  • chown -R www-data:www-data /var/www/storage /var/www/bootstrap/cache
  • chmod -R 775 /var/www/storage /var/www/bootstrap/cache
  • composer setup

From the second time onwards

  • docker compose up -d

IMPORTANT:

Don't forget to run artisan, composer, etc. commands in php container. Jump there by:

  • docker compose exec php bash

Don't forget to run queue

  • php artisan queue:listen

Fix ownership & permissions of files created by artisan:

  • sh owners.sh

Postman Instructions

  1. Fill client_secret envrionment variable with the same field's value of the only existing row in oauth_clients db table
  2. Run GetAccessToken request first and let the token to be saved to environment.

Notes

Anytime for a fresh start

  • php artisan migrate:fresh --seed

Command for renewing subscriptions

  • php artisan app:renew-subscriptions

Postman Collection

  • <project_root>/SDP.postman_collection.json

Postman Rough API Docs

Laravel App

Mailpit

phpMyAdmin

sdp-api's People

Contributors

erayera avatar

Watchers

 avatar

sdp-api's Issues

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.