Giter VIP home page Giter VIP logo

timely's Introduction

Installation

This project was developed with Laravel 8 and has its same minimum requirements for installation.

The only additional dependency is the package Spatie - Data Transfer Object.

Follow the steps below to install the application:

  • git clone https://github.com/ronanflavio/timely.git

  • cd timely

  • composer install

Now you need to create your environment configurations. To do that, create your .env file making a copy from the .env.example file in the project's root directory.

With the .env file created, run the command below to generate your project key:

  • php artisan key:generate

PHPUnit usage

Use the command below to run the test cases:

  • php artisan test

The command will execute all the test cases created.

REST usage

If you want to use the application through a REST client, you need to configure the local environment with your database.

Open the .env file in an editor and set the database environment variables.

With your database configured, just run the command below to migrate and seed:

  • php artisan migrate --seed

This command will generate the database and seed five Organizers with IDs from 1 to 5 to enable testing from a REST client.

Available endpoints

  • Create Event: POST /api/events

    Request body example:

    {
        "title" : "Title of the event",
        "description" : "Long description goes here.",
        "start_datetime" : "2021-12-25 18:00:00",
        "end_datetime" : "2021-12-25 23:59:59",
        "organizers" : [1,2,3,4]
    }
    
  • Retrieve Event: GET /api/events/:id

  • Update Event: PUT /api/events/:id

    Request body example:

    {
        "title" : "Title of the event updated",
        "description" : "Long description goes here.",
        "start_datetime" : "2021-12-25 17:00:00",
        "end_datetime" : "2021-12-25 22:00:00",
        "organizers" : [3,4]
    }
    
    
  • Delete Event: DELETE /api/events/:id

timely's People

Contributors

ronanflavio avatar

Watchers

 avatar

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.