/Nakhod_Railroad

Order railroad tickets online!

Primary LanguagePython

Railroad System

Quickstart

This code is hosted here.
To test the main functionality, follow these steps:

  1. Sign up for an account.
  2. Search for Kyiv-Dnipro trains on 27.03.2023.
  3. During payment, input the card number 4242 4242 4242 4242, any expiry date in the future, and any three-digit CVC (Stripe docs for reference).

Self-hosting

Note
You will need a publicly accessible URL so that Stripe can send a confirmation of a successful payment.

To host the code yourself, follow these steps:

  1. Clone the repository and install the dependencies.
git clone https://github.com/konovaliuk/Nakhod_Railroad.git
pip install -r requirements.txt
  1. Initialize a database. For MySQL, you can use the sample file.
mysql> source init_database.sql
  1. Install wkhtmltopdf
sudo apt install -y wkhtmltopdf
  1. Register a Stripe developer account to get an API and endpoint keys.
  2. Register a SendGrid developer account to get an API key.
  3. Rename the file .env.example to .env, replace sample environment variables.
  4. Start the server.
python app.py