GithubHelp home page GithubHelp logo

vakra-front's People

Contributors

intermetric avatar muruw avatar

Watchers

 avatar

vakra-front's Issues

Create navbar

Acceptance criteria: Added routing, all the buttons in the picture have been implemented.

Screenshot 2020-07-22 at 12 19 56

Style ShortBooking component

Style BookingShort component and its children - startDateSelect, EndDateSelect, VisitorsSelect and BookNowButton. These components should exist, so it's not necessary to create them.

Acceptance criteria: All components named in this task have been styled and the end result looks like the picture

Screenshot 2020-07-22 at 11 55 59

Admin user authentication

Create login component where users can log in (No registration! Adding new users is done via admin panel)
https://strapi.io/documentation/3.0.0-beta.x/plugins/users-permissions.html#token-usage
Login returns JWT token that should be stored in localStorage.
After logging in with admin user, they will be redirected automatically to admin page
Admin view component should be custom component PrivateRoute that can only be accessed when user has signed up.

Acceptance criteria: Create authentication, admin user, empty admin page

DatePicker check booked dates

Make get requests to /bookings
Mark all corresponding dates red that have been booked
Calculate amount of houses - if 3 bookings have been made but there are in total of 5 houses then that date wont be colored red because 2 houses are still available

Acceptance criteria: Dates in datepicker will be red if that date has already been booked

BookingShort POST

Create BookingShort component and its 4 child components ->

  • Book now button
  • startDateSelect
  • endDateSelect
  • VisitorsSelect

Create necessary field in Strapi.
Create endpoints
Create functionality

Acceptance criteria: Book now button will POST Booking into BE.

Styling will be done in issue #1
Screenshot 2020-07-22 at 11 55 59

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.