Giter Club home page Giter Club logo

iragu's People

Contributors

gurusami avatar

Stargazers

 avatar

Watchers

 avatar

iragu's Issues

Registration offers can be made only by certain admins

Not all admins are allowed to make registration offers. Only certain authorized admins should be able to make registration offers. I think each PHP script is meant to do one type of transaction (or a use case) on the database. So such authorizations could be made for PHP script. What this means is that the question would be "Can this admin/user execute this PHP script?". If yes, then the user has authorization. If not, no authorization. This is some sort of an access control list (ACL).

We can use a table like this to handle/solve this issue:

CREATE TABLE ir_acl_make_registration_offer (
nick varchar(8) primary key,
constraint foreign key(nick) references ir_people(nick));

Sign up page for regular users

Customers or end users should be able to register themselves by providing some basic information. I think e-mail address and/or mobile number should be compulsory for registering.

Provide admin interface to add one badminton court

The campus is only used for grouping purposes. Each campus can have one or more badminton courts of different types. Bookings are to be done for courts and not campuses. The reason is that each court can be priced differently based on their type of flooring.

An admin interface to open a court for booking

Booking a court is limited to a few days in the future. Need to think and decide if booking should be opened globally (common for all courts) or booking should be opened for particular courts. Once booking is opened, then players can do the actual booking.

Need Admin Interface to Register New User

I think it is a good idea to have an admin interface to register new user. Suppose the iragu web-app is only used internally and not exposed to the end user, then such an interface becomes necessary.

Remove the admin interface to register a user

All users can register themselves (self service). So there is no need for an admin interface to register a user. I think it can be removed. No need to duplicate the functionality.

Create a basic login page and process the login request

Display a login form. After the user enters the details and submits the form, do the validation process. Report success or failure. In the case of failed login attempt, re-display the login form again with an error message. If the login attempt was successful, start a session and display a welcome message.

Create a database table to hold login credentials

Anyone who needs to make use of the iragu application need to have the user name and password stored in this table. I think ir_login would be a suitable name for this table. The user name should be the same as the nick name stored in the ir_people table.

User be able to recharge using Razorpay

Integrate with Razorpay. I have found the Razorpay to be very developer friendly. Enable registered users to recharge their account using Razorpay online payment gateway.

Provide admin interface to add a campus

A campus can be considered as a sports complex where one or more badminton courts are available for play. The main purpose of the campus abstraction is to provide an abstraction to store the postal address. Campus data should be suitable for provide driving directions to other people.

Define a database table to hold playtime balance information of players

Each player needs to register in the application and create an account. The account will be maintained in terms of playtime - number of minutes the player has purchased. This playtime will be used for booking the courts. Yes, this is a prepaid system. With this in mind, define a database table to hold playtime balance information for each player. This table will contain one row per player.

An admin needs to recharge the account of a customer

There will be a list of recharge offers or plans available for any particular day. List them out and choose the correct value. Verify payment should be a part of this workflow. At the end of this operation, the balance needs to be incremented accordingly.

Make a recharge offer to a customer

Recharging with random amount of money need not be supported. Similar to mobile prepaid recharge, only certain denominations needs to be supported. Each such recharge plan can be considered as a recharge offer. Discount may or may not be there.

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.