Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
9522ba5
Add files via upload
MSHRISH Apr 1, 2022
be4d13f
Create base.html
MSHRISH Apr 1, 2022
93d3b74
Add files via upload
MSHRISH Apr 1, 2022
f9c83c7
Create forms.py
MSHRISH Apr 1, 2022
49d3625
Create run.py
MSHRISH Apr 1, 2022
921bafe
Delete forms.py
MSHRISH Apr 1, 2022
29a9fa2
Delete test.py
MSHRISH Apr 1, 2022
e793c2a
Create base.html
MSHRISH Apr 1, 2022
a0c088d
Add files via upload
MSHRISH Apr 1, 2022
9a37e59
Delete templates directory
MSHRISH Apr 1, 2022
f73b973
Create student_login.html
selvendranks Apr 1, 2022
f99fefb
Merge pull request #1 from selvendranks/patch-1
MSHRISH Apr 1, 2022
88c80f5
Update student_login.html
selvendranks Apr 1, 2022
c3e7c69
Merge pull request #2 from selvendranks/patch-2
MSHRISH Apr 1, 2022
1c89283
Update student_login.html
MSHRISH Apr 1, 2022
8017750
Create Faculty_login.html
selvendranks Apr 1, 2022
38e35b9
Update student_login.html
selvendranks Apr 1, 2022
0f93186
Update README.md
sanjay0001 Apr 1, 2022
0556470
Merge pull request #5 from sanjay0001/patch-1
MSHRISH Apr 1, 2022
010907d
Merge pull request #4 from selvendranks/patch-4
MSHRISH Apr 1, 2022
2a8b496
Merge pull request #3 from selvendranks/patch-3
MSHRISH Apr 1, 2022
34319d5
Create front_page.html
selvendranks Apr 1, 2022
6a411cf
Merge pull request #6 from selvendranks/patch-5
MSHRISH Apr 1, 2022
0584277
Create edit_page.html
selvendranks Apr 1, 2022
0e638d2
Create AddQuestion.html
selvendranks Apr 1, 2022
b3b3198
Create editpage.html
selvendranks Apr 1, 2022
b632774
Create profile.html
selvendranks Apr 1, 2022
125305d
Merge pull request #11 from selvendranks/patch-10
MSHRISH Apr 1, 2022
b80dd71
Merge pull request #10 from selvendranks/patch-9
MSHRISH Apr 1, 2022
859412c
Merge pull request #9 from selvendranks/patch-8
MSHRISH Apr 1, 2022
d6b10f2
Merge pull request #7 from selvendranks/patch-6
MSHRISH Apr 1, 2022
b04006f
Create __init__.py
MSHRISH Apr 2, 2022
eb39800
Delete main_app/Connecx directory
MSHRISH Apr 2, 2022
26c4696
Create test.py
MSHRISH Apr 2, 2022
62d6668
Create __init__.py
MSHRISH Apr 2, 2022
9c8d665
Add files via upload
MSHRISH Apr 2, 2022
41560fa
Create base.html
MSHRISH Apr 2, 2022
7d8a7ff
Add files via upload
MSHRISH Apr 2, 2022
64506df
Update routes.py
MSHRISH Apr 2, 2022
a98d3fa
Update front_page.html
MSHRISH Apr 2, 2022
85c60a3
Update front_page.html
MSHRISH Apr 2, 2022
ab3af42
Add files via upload
MSHRISH Apr 2, 2022
de377a8
Update routes.py
MSHRISH Apr 2, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 39 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,40 @@
# Connection_Web_App
This app acts as a connecting bridge between juniors, seniors and faculties for their respective institution.
Problem Description:
After 12 th standard, many of the students would join colleges. When they enter into college, Majority of them don’t know what are the things they should do or
shouldn’t do in college. For example, a first-year student doesn’t know about how to prepare himself for the industry and he/she also don’t know what are
the things to do for higher studies and the problem goes on. Every first-year student has many doubts on many topics. when time goes on, they slowly came to know about their need, what to do and how to prepare. At this time, they probably in 3 rd year.so they almost wasted huge amount of time in unnecessary
things and activities.
Connection web app aims at tackling the above issues and providing a seamlessly integrated, web-based questioning and answering application that enables the students to put a question or doubts on the web app and any student (probably seniors) or faculty of the institution can give the solution or answer for the question or doubt.

Use Cases:
User – Put questions or doubts
User – Answer questions or doubts
User – Read questions and answers
User – Share their experience on college, the mistakes they made, the thing
they learned and etc.,

Description of the software solution:
Connection is the web-based application that enables college students to ask their doubts (related to college, carrier, courses, placement preparation and
etc.,) and senior students or faculty members can give solution for the problem the student face. This web app act as a connection bridge between junior
students, senior students and faculty members. This application can only usable by same college students (As of now this application will be only available for
Rajalakshmi engineering college students)

Enhancement Requests:
1. User Profile
Users can have profile, that profile shows their resignation for faculties and
details (Roll Number, Name, year, department) for students.

Functional Requirements:
1. User Registration
User must be able to register for the application through a valid email id. On
using the application for the first time, user must create a profile.
2. Post question or doubts
User can able to post questions on the application.
3. Answer questions and doubts
User can able to answer the questions. One question can have multiple
solutions.
4. View questions and their answers
When user enter into the application, the application feed some questions
and respective answer to the user.
5. Search questions
User can search questions and find respective answers.
8 changes: 8 additions & 0 deletions login_page/forms.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from flask_wtf import FlaskForm
from wtforms import StringField,PasswordField,SubmitField

class register(FlaskForm):
roll_no=StringField(label='Rollno')
password1=StringField(label='Password')
login=SubmitField(label='Login')

12 changes: 12 additions & 0 deletions login_page/run.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from flask import Flask,render_template
from forms import register
app = Flask(__name__)
app.config['SECRET_KEY']='265ace69ca3210b6295e4b3f'


@app.route('/')
@app.route('/login')
def home():
form=register()
return render_template('login.html',form=form)

107 changes: 107 additions & 0 deletions login_page/templates/Faculty_login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bootstrap Site</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/css/bootstrap.min.css"
integrity="sha384-r4NyP46KrjDleawBgD5tp8Y7UzmLA05oM1iAEQ17CSuDqnUK2+k9luXQOfXJCJ4I" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/js/bootstrap.min.js"
integrity="sha384-oesi62hOLfzrys4LxRF63OJCXdXDipiYWBnvTl9Y9/TRlw5xlKIEHpNyvvDShgf/"
crossorigin="anonymous"></script>
</head>

<body>

<div class="container">
<h2 class="ml-5">Faculty profile : </h2>
<div class="row">
<div class="col-md-6 offset-md-3">
<form action="" method="post" class="validated" novalidate>
<div class="mb-1 input-group-sm">
<label class="form-label">UserName :</label>
<input type="text" class="form-control" name="username" required>
<div class="invalid-feedback">
Required
</div>
</div>
<div class="mb-1 input-group-sm">
<label class="form-label">ID/RollNo :</label>
<input type="number" class="form-control" name="RollNo" required>
<div class="invalid-feedback">
Required
</div>
</div>
<div>
<label class="form-label">Department :</label>
<select name="Department" id="">
<option value='Aeronautical Engineering Artificial Intelligence and Machine Learning'>Aeronautical Engineering Artificial Intelligence and Machine Learning</option>
<option value='Automobile Engineering'>Automobile Engineering</option>
<option value='Biomedical Engineering'>Biomedical Engineering</option>
<option value='Biotechnology'>Biotechnology</option>
<option value='Chemical Engineering'>Chemical Engineering</option>
<option value='Civil Engineering'>Civil Engineering</option>
<option value='Computer Science and Design'>Computer Science and Design</option>
<option value='Computer Science and Engineering'>Computer Science and Engineering</option>
<option value='Computer Science and Business Systems'>Computer Science and Business Systems</option>
<option value='Electrical and Electronics Engineering'>Electrical and Electronics Engineering</option>
<option value='Electronics and Communication Engineering'>Electronics and Communication Engineering</option>
<option value='Food Technology'>Food Technology</option>
<option value='Information Technology'>Information Technology</option>
<option value='Mechanical Engineering'>Mechanical Engineering</option>
<option value='Mechatronics'>Mechatronics</option>
<option value='Robotics and Automation'>Robotics and Automation</option>
</select>
</div>
<div class="mb-1 input-group-sm">
<label for="formFileSm" class="form-label">Add Profile image: </label>
<input class="form-control form-control-sm" id="formFileSm" type="file" name="Profile[image]"
single>
</div>
<div>
<label class="form-label d-inline-block">Gender :</label>
<div class="form-check d-inline-block">
<input class="form-check-input" type="radio" value="female" name="gender" id="flexRadioDefault2" >
<label class="form-check-label" for="flexRadioDefault2">
Male
</label>
</div>
<div class="form-check d-inline-block">
<input class="form-check-input" type="radio" value="female" name="gender" id="flexRadioDefault2" >
<label class="form-check-label" for="flexRadioDefault2">
Female
</label>
</div>
<div class="form-check d-inline-block">
<input class="form-check-input" type="radio" value="female" name="gender" id="flexRadioDefault2" >
<label class="form-check-label" for="flexRadioDefault2">
Others
</label>
</div>

</div>
<div class="mb-1 input-group-sm">
<label class="form-label">Password :</label>
<input type="password" class="form-control" name="batch" required>
<div class="invalid-feedback">
Required
</div>
</div>
<div class="mb-1 input-group-sm">
<label class="form-label">Confirm Password :</label>
<input type="password" class="form-control" name="batch" required>
<div class="invalid-feedback">
Required
</div>
</div>
<button class="btn btn-primary">Create Account</button>
</form>
</div>
</div>
</div>
</body>
</html>
47 changes: 47 additions & 0 deletions login_page/templates/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<title>{% block title%}
{%endblock%}</title>
</head>



<body>
<nav class="navbar navbar-expand-md navbar-dark bg-dark">
<a class="navbar-brand">REC DOUBT CLEAR</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav mr-auto">
</ul>

</div>
</nav>

{%block content%}{%endblock%}

<!-- Future Content here -->



<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src='https://kit.fontawesome.com/a076d05399.js'></script>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
</body>
<style>
body {
background-color: #212121;
color: white
}
</style>
</html>
33 changes: 33 additions & 0 deletions login_page/templates/login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{% extends 'base.html'%}
{% block title %}
Register Page
{% endblock %}

{% block content %}

<body class="text-center">
<div class="container">
<form method="POST" class="form-register" style="color:white">
<img class="mb-4" src="https://www.rajalakshmi.org/image/logo2.png" alt="">
<br>
<br>
<h1 class="h3 mb-3 font-weight-normal">
Login to your Account
</h1>
<br>
{{ form.roll_no.label() }}
{{ form.roll_no(class="form-control", placeholder="Rollno") }}

{{ form.password1.label() }}
{{ form.password1(class="form-control",type="password", placeholder="Password",) }}
<br>
{{ form.login(class="btn btn-lg btn-block btn-primary") }}




</form>
</div>
</body>

{% endblock %}
133 changes: 133 additions & 0 deletions login_page/templates/student_login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bootstrap Site</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/css/bootstrap.min.css"
integrity="sha384-r4NyP46KrjDleawBgD5tp8Y7UzmLA05oM1iAEQ17CSuDqnUK2+k9luXQOfXJCJ4I" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/js/bootstrap.min.js"
integrity="sha384-oesi62hOLfzrys4LxRF63OJCXdXDipiYWBnvTl9Y9/TRlw5xlKIEHpNyvvDShgf/"
crossorigin="anonymous"></script>
</head>

<body>

<div class="container">
<h2 class="ml-5">Your profile : </h2>
<div class="row">
<div class="col-md-6 offset-md-3">
<form action="" method="post" class="validated" novalidate>
<div class="mb-1 input-group-sm">
<label class="form-label">UserName :</label>
<input type="text" class="form-control" name="username" required>
<div class="invalid-feedback">
Required
</div>
</div>
<div class="mb-1 input-group-sm">
<label class="form-label">ID/RollNo :</label>
<input type="number" class="form-control" name="RollNo" required>
<div class="invalid-feedback">
Required
</div>
</div>
<div>
<label class="form-label">ID/RollNo :</label>
<select name="Department" id="">
<option value='Aeronautical Engineering Artificial Intelligence and Machine Learning'>Aeronautical Engineering Artificial Intelligence and Machine Learning</option>
<option value='Automobile Engineering'>Automobile Engineering</option>
<option value='Biomedical Engineering'>Biomedical Engineering</option>
<option value='Biotechnology'>Biotechnology</option>
<option value='Chemical Engineering'>Chemical Engineering</option>
<option value='Civil Engineering'>Civil Engineering</option>
<option value='Computer Science and Design'>Computer Science and Design</option>
<option value='Computer Science and Engineering'>Computer Science and Engineering</option>
<option value='Computer Science and Business Systems'>Computer Science and Business Systems</option>
<option value='Electrical and Electronics Engineering'>Electrical and Electronics Engineering</option>
<option value='Electronics and Communication Engineering'>Electronics and Communication Engineering</option>
<option value='Food Technology'>Food Technology</option>
<option value='Information Technology'>Information Technology</option>
<option value='Mechanical Engineering'>Mechanical Engineering</option>
<option value='Mechatronics'>Mechatronics</option>
<option value='Robotics and Automation'>Robotics and Automation</option>
</select>
</div>
<div class="mb-1 input-group-sm">
<label class="form-label">Batch-Year :</label>
<input type="number" class="form-control" name="batch" required>
<div class="invalid-feedback">
Required
</div>
</div>
<div class="mb-1 input-group-sm">
<label for="formFileSm" class="form-label">Add Profile: </label>
<input class="form-control form-control-sm" id="formFileSm" type="file" name="Profile[image]"
single>
</div>
<div>
<label class="form-label d-inline-block">Gender :</label>
<div class="form-check d-inline-block">
<input class="form-check-input" type="radio" value="female" name="gender" id="flexRadioDefault2" >
<label class="form-check-label" for="flexRadioDefault2">
Male
</label>
</div>
<div class="form-check d-inline-block">
<input class="form-check-input" type="radio" value="female" name="gender" id="flexRadioDefault2" >
<label class="form-check-label" for="flexRadioDefault2">
Female
</label>
</div>
<div class="form-check d-inline-block">
<input class="form-check-input" type="radio" value="female" name="gender" id="flexRadioDefault2" >
<label class="form-check-label" for="flexRadioDefault2">
Others
</label>
</div>

</div>

<div>
<label class="form-label d-inline-block">Hosteler/Dayscholor :</label>
<div class="form-check d-inline-block">
<input class="form-check-input" type="radio" value="female" name="place" id="flexRadioDefault2" >
<label class="form-check-label" for="flexRadioDefault2">
Day Scholar
</label>
</div>
<div class="form-check d-inline-block">
<input class="form-check-input" type="radio" value="female" name="place" id="flexRadioDefault2" >
<label class="form-check-label" for="flexRadioDefault2">
Hosteler
</label>
</div>

</div>
<div class="mb-1 input-group-sm">
<label class="form-label">Password :</label>
<input type="password" class="form-control" name="batch" required>
<div class="invalid-feedback">
Required
</div>
</div>
<div class="mb-1 input-group-sm">
<label class="form-label">Confirm Password :</label>
<input type="password" class="form-control" name="batch" required>
<div class="invalid-feedback">
Required
</div>
</div>
<button class="btn btn-primary">Create Account</button>
</div>

</div>
</div>

</body>

</html>
9 changes: 9 additions & 0 deletions main_app/Connecx/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from flask import Flask,render_template
from flask_sqlalchemy import SQLAlchemy

app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI']='sqlite:///Quora.db'
app.config['SECRET_KEY']='2418faa391fc381ac9f81b29'
db=SQLAlchemy(app)

from Connecx import routes
Loading