Skip to content

Getting Started

Rifbid is a platform crafted to seamlessly connect government organizations with the most suitable and qualified companies.

In this guide, you’ll find detailed instructions to help you set up the project’s backend locally, ensuring a smooth and efficient deployment process.

Prerequisites

  • Before running the application, ensure the following are installed or configured:
    • Python 3.10.x
    • MongoDB >7.0

Project Setup

  • Clone the project locally

  • Create python environment

    python -m venv venv

  • Activate virtual environment (On Mac)

    source venv/bin/activate

  • Activate virtual environment (On Windows)

    .\venv\Scripts\activate

Environment File Setup

  • Next create a .env file on root directory and set up the following env variables. Reach out to team for the values.

    NEXT_PUBLIC_API_URL=
    NEXT_PUBLIC_EMULATOR_FIRESTORE_PATH=
    NEXT_PUBLIC_EMULATOR_AUTH_PATH=
    SECRET_KEY=
    MONGO_URI=
    MONGODBUSER=
    MONGODBPW=
    OPENAI_API_KEY=
    PowerTranzPowerTranzId=
    PowerTranzPowerTranzPassword=
    RequestId=
    TOKENIZE_ENDPOINT=
    SALE_ENDPOINT=
    PROCESS_SALE_ENDPOINT=
    FRONT_ENDPOINT=
    NON3DS_ENDPOINT=
    EMAIL_USERNAME=
    EMAIL_PASSWORD=
    FRONT_END_URL=
    BACK_END_URL=
    LOGO_URL=
    SENDGRID_API_KEY=
    SENDGRID_EMAIL =

Run the Application

  • You can now start the server by running
    python app.py