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
Click for WebPage https://web-development-with-flask.onrender.com/
Prerequisites:
- Python (https://www.python.org/)
- Replit account (https://replit.com/)
- Dedicated Database Service (recommended)
Steps:
-
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.
-
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):
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:
-
Use a dedicated database hosting service such as:
- Google Cloud SQL: https://cloud.google.com/sql
- Amazon RDS: https://aws.amazon.com/rds/
- Heroku Postgres: https://devcenter.heroku.com/articles/heroku-postgresql
- DigitalOcean Managed Databases: https://www.digitalocean.com/products/managed-databases
-
Follow the chosen service's instructions to create a database and obtain your credentials (username, password, host, port, database name).
-
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.
-
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.