Giter Site home page Giter Site logo

app-generator / api-server-laravel Goto Github PK

View Code? Open in Web Editor NEW
10.0 4.0 1.0 145 KB

Laravel API Server - Open-Source API Server | AppSeed

Home Page: https://appseed.us/boilerplate-code/laravel-boilerplate

License: Other

Shell 0.73% PHP 84.22% Blade 15.05%
laravel api-rest appseed appseed-sample

api-server-laravel's Introduction

Research and Innovation-oriented StartUp for Developers and Companies - Used by 8k+ registered Users.

Read more about the team, get support, or order a custom development sprint for MVPs and fully coded services.


AppSeed is a platform that uses in-house developed automation tools to cut the manual work usually involved in web development.

The App Generator is an automated workflow that consumes flat, lifeless UI Kits and builds starters in different patterns and languages: MVC, two-tier architecture, full-stack,SPA ..etc.

๐Ÿ‘‰ Read the full story published on Medium

The product is self-funded, mainly driven by open-source and community members connected to the service via different funnels (Email, Newsletter) and Discord (2k+ members).


AppSeed - Automation platform for developers.


Services and Products


Rocket Django Tailwind

The Django boilerplate has all you need to build your SaaS, Analytics tool, or any other type of Web App. From idea to production in 5 minutes.

Features: Django โ€ข Tailwind โ€ข API (DRF) โ€ข Celery Beat โ€ข DataTables โ€ข Charts โ€ข Docker โ€ข CI/CD.


Free Version PRO Version Custom Development
โœ“ Django 4.2.9 Everything in Free, plus: Everything in PRO, plus:
โœ“ Best Practices โœ… OAuth Google, GitHub โœ… 1mo Custom Development
โœ“ TailwindCSS/Flowbite โœ… Enhanced Charts โœ… Team: PM, Developer, Tester
โœ“ Extended User Model โœ… Enhanced DataTables โœ… Weekly Sprints
โœ“ Simple Charts โœ… Media Files Manager โœ… Technical SPECS
โœ“ Simple DataTables โœ… Stripe Payments โœ… Documentation
โœ“ API via DRF โœ… Wagtail CMS โœ… 30 days Delivery Warranty
โœ“ Celery Beat โœ… Multi-Language (i18n) Support -
โœ“ Docker โœ… Sentry Error Reporting -
โœ“ CI/CD Flow via Render โœ… PRO Support - Email & Discord -
โœ“ Free Support (GitHub Issues) โœ… Unlimited Projects -
- โœ… Private REPO Access -
- โœ… Lifetime Updates -
------------------------------------ ------------------------------------ ------------------------------------
๐Ÿš€ LIVE Demo ๐Ÿš€ LIVE Demo ๐Ÿ›’ Order: $3,999 (GUMROAD)

Free Django Dashboard and Admin Template - Rocket Django.



AppSeed - Research and Innovation-oriented StartUp for Developers and Companies

api-server-laravel's People

Contributors

app-generator avatar rennokki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

api-server-laravel's Issues

Enhancement - API code generated from POSTMAN/Swagger descriptor

Follow UP Thread

In the long run, the API should be provisioned automatically based on an input file.
Ideally, the automatized process should follow this setup:

  • Input File: POSTMAN or Swagger
  • API code automatically generated
    • new methods should preserve the header constraints
  • Database tables

Tests / Edit User - Expected I/O

API URL : http://localhost:5000/api/users/edit

Request Headers

  • Content-Type: application/json
  • authorization: JWT_TOKEN_HERE

Request Body

 {
        "userID": "1",
        "username": "test_updated",
        "email": "[email protected]"
}

Response For success

{
    "success": true
}

Response for error (token inactive, mismatch userId / token)

{
    "success": false,
    "msg": "Error updating user"
}

Error running `composer install`

composer install command bumps console errors:

Short Info

$ composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

Environment

  • OS: Debian/Ubuntu 18.04 LTS
  • Php version: PHP 7.4.3
  • Composer version: Composer version 2.1.6

Full Log

$ composer install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - tijsverkoyen/css-to-inline-styles is locked to version 2.2.3 and an update of this package was not requested.
    - tijsverkoyen/css-to-inline-styles 2.2.3 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 2
    - phar-io/manifest is locked to version 2.0.3 and an update of this package was not requested.
    - phar-io/manifest 2.0.3 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 3
    - phpunit/php-code-coverage is locked to version 9.2.6 and an update of this package was not requested.
    - phpunit/php-code-coverage 9.2.6 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 4
    - phpunit/phpunit is locked to version 9.5.8 and an update of this package was not requested.
    - phpunit/phpunit 9.5.8 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 5
    - theseer/tokenizer is locked to version 1.2.1 and an update of this package was not requested.
    - theseer/tokenizer 1.2.1 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
  Problem 6
    - tijsverkoyen/css-to-inline-styles 2.2.3 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
    - laravel/framework v8.55.0 requires tijsverkoyen/css-to-inline-styles ^2.2.2 -> satisfiable by tijsverkoyen/css-to-inline-styles[2.2.3].
    - laravel/framework is locked to version v8.55.0 and an update of this package was not requested.

Login Error - Cannot Authenticate User

Context

  • Registration ok
  • Login -> Not ok
  • Environment:
    • OS: Ubuntu 18.04
    • PHP 7.4.3
    • Composer 2.1.6

How to reproduce

  • Fresh install via GIT
  • Execute the README set up
  • Send registration request -> OK
{
    "username":"test",
    "password":"pass", 
    "email":"[email protected]"
}
  • Try to authenticate -> NOT OK
    • Request
{
    "password":"pass", 
    "email":"[email protected]"
}
  • Response
{
    "success": false,
    "msg": "Wrong credentials."
}

Nothing relevant in runtime logs.

Tests / Logout - Expected I/O

API URL : http://localhost:5000/api/users/logout

Request Headers

  • Content-Type: application/json
  • authorization: JWT_TOKEN_HERE

Request Body

{
    "token": "JWT_TOKEN_HERE"
}

Response For success

{
    "success": true,
    "msg": "Token revoked"
}

Response for unknown token

{
    "success": false,
    "msg": "User is not logged on"
}

Tests / Check Session - Expected I/O

API URL : http://localhost:5000/api/users/checkSession

Request Headers

  • Content-Type: application/json
  • authorization: JWT_TOKEN

Request Body - Empty

Response for success

{
    "success": true
}

Response for failure

{
    "success": false,
    "msg": "User is not logged on"
}

Tests / Register - Expected I/O

API URL : http://localhost:5000/api/users/register

Request Headers

  • Content-Type: application/json

Request Body

{
    "username":"test",
    "password":"pass", 
    "email":"[email protected]"
}

Response for success

{
    "success": true,
    "userID": "1",
    "msg": "The user was succesfully registered"
}

Response for failure - email already taken

{
    "success": false,
    "msg": "Email already taken"
}

Tests / Login - Expected I/O

API URL : http://localhost:5000/api/users/login

Request Headers

  • Content-Type: application/json

Request Body

{
    "password":"pass", 
    "email":"[email protected]"
}

Response for success

{
    "success": true,
    "token": "JWT_TOKEN_HERE",
    "user": {
        "_id": "1",
        "username": "test",
        "email": "[email protected]"
    }
}

Response for failure - wrong password or email

{
    "success": false,
    "msg": "Wrong credentials"
}

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.