Coder Social home page Coder Social logo

cord-app-api's Introduction

Development Tools

  1. Install Laragon
  2. Install Git
  3. Signup for Github Account

Steps for API Development with Lumen

  1. Create project

    • Menu > Laravel > Create Project > Lumen
      • project name: cord-app-api
      • if ask for token, generate in GitHub > Settings > Personal Access Token:repo
    • http://cord-app-api.dev
  2. Create database

    • CREATE DATABASE cord-app
  3. Configure .env

    • Set database details - database name, user & password
    • Generate 32 character random key(use online tools for this).
  4. Create model and save in app/

    • Enable Eloquent in bootstrap/app.php, Line 28
    • Schema
      • locations
        • id
        • name
        • description
        • photo
        • latitude
        • longitude
  5. Create migration scripts and execute

    • php artisan make:migration create_locations_table --create=locations
    • php artisan migrate
  6. Update migration scripts schema

    • php artisan make:migration update_location_table --table=locations
    • php artisan migrate
  7. Create factories

  8. Update database/seeds/DatabaseSeeder.php and run php artisan db:seed

  9. Setup Route app/Http/routes.php

    • show all record
    • get specific record
    • create record
    • update record
    • delete record
  10. Setup Controller app/Http/Controller/Location.php

    • index
    • store
    • show
    • update
    • destroy
  11. Eloquent

    • Create (store)
    • Read (show)
    • Update (update)
    • Delete (destroy)

Official Documentation

Documentation for the framework can be found on the Lumen website.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell at [email protected]. All security vulnerabilities will be promptly addressed.

License

The Lumen framework is open-sourced software licensed under the 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.