Skip to content

Developing web application on replit platform with flask framework

License

Notifications You must be signed in to change notification settings

QED137/FlaskOnReplit

Repository files navigation

Full-Stack Job Board Demo: Flask & Replit (Mock Data), cloud platform

Welcome to our GitHub repository!

This project is a web application for job advertisements, built using HTML/CSS/JavaScript for the frontend, Flask for the backend, and SQLAlchemy for database interaction. The development and production has been done on cloud platform It allows users to view and apply for job listings posted by employers. Features Job Listings: View a list of available job positions. Apply for Jobs: Users can apply for jobs directly through the website. Admin Panel: Employers can post new job listings and manage existing ones through an admin panel.

Technologies Used

Frontend: HTML, CSS, JavaScript
Backend: Flask
Database: MySQL
Cloud Platforms:
    Development: Replit
    Database Hosting: filess.io

Installation

Clone the repository:

bash

git clone

Install dependencies:

bash

pip install -r requirements.txt

Prerequisites:

Steps:

  1. Create a Replit:

    • Sign up for a Replit account or use your existing account.
    • Create a new Replit for your project and select "Flask" as the template.
  2. Install Dependencies:

    • In your Replit's terminal, install the necessary libraries:

      pip install Flask sqlalchemy [database-connector]  # Replace with your database connector (e.g., pymysql for MySQL)

Database Setup (Important Security Note):

Database Setup

Security Warning:

Connecting to a database hosted on Fileless.io is not recommended due to security concerns. Fileless.io is not designed for database management and potentially lacks adequate security measures. Data stored there might be exposed or compromised.

Recommended Approach:

  1. Use a dedicated database hosting service such as:

  2. Follow the chosen service's instructions to create a database and obtain your credentials (username, password, host, port, database name).

  3. Do not commit your database credentials to a public repository (like GitHub). Use secure environment variables on Replit:

    • Go to your Replit project's dashboard.
    • Click on the "Secrets" tab.
    • Create new secrets for each database credential.
  4. In your Python code, use the os module to access these secrets securely:

    import os
    
    db_username = os.environ.get('DB_USERNAME')
    db_password = os.environ.get('DB_PASSWORD')
    # ... other credentials
    

Contributing

Contributions are welcome! Please follow the Contributing Guidelines. License

This project is licensed under the MIT License. Acknowledgements

Thanks to Replit for providing a cloud platform for development.
Thanks to filess.io for hosting the MySQL database.

About

Developing web application on replit platform with flask framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published