Coder Social home page Coder Social logo

laravel-accommodations's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

laravel-accommodations's Issues

Add availability queries to Room model

To do

  • $room->isAvailableForPeriod(DateTime $start, DateTime $end);
  • $room->isAvailableForDate(DateTime $date);
  • $room->whereAvailableForPeriod(DateTime $start, DateTime $end);
  • $room->whereAvailableForDate(DateTime $date)

Think about general application routes

  • Routes for front
  • Routes for portal
  • Routes for management

Front routes

  • / - Homepage
    • This page will contain the search form
  • /search - Search results
    • This page will contain the search results
    • Maybe /d instead of /search (discover)
  • /{listing-type}/{area-slug}/{listing-slug} - Listing page
    • This page will contain a listing

Secure routes

Domain: secure.laravel-accommodations.test

  • /
    • This page contains the main overview (also known as a dashboard)
  • /reservations
    • This page lists all reservations
  • /reservation/{id}
    • Shows a reservation details
  • /reviews
    • This page lists all given reviews
  • /settings
    • This page contains all the configurable settings

Portal routes

Management routes

  • /dashboard - Dashboard
  • /users - Users
  • /listings - Listings
  • /bookings - Bookings

General Features

  • Listing reviews
  • Share listing on listing page
  • A listing should have a gallery
  • Show map of listing's location
  • Listing facilities
  • Listing house rules
  • Localization
    • feature to change the locale, determine locale from the user agent
    • Store user locale in the users table

Roles and Permissions setup

Overview

Roles summary

  • Super Admin (super-admin)
  • Manager (manager)
  • Member (member)

Roles

Super Admin

This role has pretty obviously permission to all available permissions. This will be done using the Gate::before() method.

Member

This role will be attached to registered users. It gives the user access to user specific areas

Technical

Conventions

Decide:
// edit, delete, publish, unpublish
// browse, read, edit, add, delete

Create a simple first UI for all environments

Right now, it's not easy to add new features because we can't test it out in the browser. Creating a simple UI allows us to create the authentication forms which enables us to log in directly in the browser.

Store location of listing

Right now it uses the address model, but this table contains to much unrelated junk like personal information. Maybe a locations table that stores all kind of information: lat, long, address, postcode ... without user binded data.

Google Two Factor authentication experiment

The specification for this experiment is as follows:

This is implementation will be created for the management portal only. Manual registering isn't possible, so we only need to take extra steps when employees are logging in or when users need to re-authenticate.

Pre thoughts

  1. We need a middleware to protect pages where you need to be authenticated (not the same as authorized). Little bit the same as the Authenticated middleware. I think it's okey to keep the middleware seperated for easy removal and abstracter code.
  2. We need a page to setup this application in someone's Authenticator app, so they're able to get login tokes
  3. We need a page to check for a correct login token, so the user is able to view the protected pages

To do

  • Install pragmarx/google2fa
  • [x]

Roadmap v0.4.0

Tasks

Secure

  • Finish the login, register, and password reset functionality
  • Add a user profile picture functionality
  • Design the initial version of the secure environment (navigation)

Management

  • Build the login, register, and password reset functionality
  • Add a user profile picture functionality
  • Create an empty dashboard page
  • Build the initial version of the listings index page

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.