Skip to content

ITopGun/TicketSelling-Platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ticket selling platform

Ticket selling platform is an application for buying tickets for different events. Allows to choose seats in different standards (regular, premium and vip), pay for them and check reservations details.

Run app

To run app you need to have python 3 installed. Then you can use virtual enviroment to install additional requirements or just install them on your system.

Use virtualenv

If you do not want to use virtual enviroment just skip this steps. But if you want, firstly install virtualenv with pip:

$ pip install virtualenv

Then in repository directory create virtual enviroment with use:

$ virtualenv env

To activate enviroment on linux system enter:

$ source env/bin/activate

and for windows system:

> env\Scripts\activate

After that you are ready to install requirements

Install requirements

Application just need django framework and django-paypal library to be installed. Use requirements.txt file to install that. In repository directory run:

$ pip install -r requirements.txt

Run server

Now we are ready to run our server. Go to ticket_selling_platform/ directory and then run:

$ python manage.py runserver

Default port for localhost server is 8000, but you can use customize it. For example to run server on 7000 port you should use:

$ python manage.py runserver 7000

After that go to http://127.0.0.1:8000/ (or http://127.0.0.1:7000/ if you use port 7000) in your web browser. The application is almost ready to use...

Adjust ngrok

For integration with paypal (receiving IPN - instatnt payment notification) application must be publicly accessible. It can be done with use of ngrok, which create secure URL for localhost server just with one commend.

For windows

Firstly open ngrok.exe and then use this commend to create tunel:

> ngrok http 8000

replace 8000 with your port number if you do not use default one.

For linux

Go to repository directory and just run:

$ ./ngrok http 8000

replace 8000 with your port number if you do not use default one.

And thats all. Now the app can receive paypal notifications.

Remember to use URL form ngrok to make payments (for example http://104f3ae4.ngrok.io), otherwise IPN signals will be not received.

Payment

To try payment you can use following fictitious account:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published