Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v1/node_modules
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
Discussion Forum
there are four type of forum
1.coding
2.club
3.development
4.academic
anyone can ask question and anyone can answer after login/register.without registered they can only see question/answer.


for testing you have to install mongodb and node.
make local server and test it.
36 changes: 18 additions & 18 deletions hncc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
#star{
color:#17a2b8;
}

#content{
box-shadow: 0 0 3px rgba(0,0,0,0.4);

}
#content:hover
{
Expand All @@ -37,10 +37,10 @@
#work-icon{
font-size: 3em;
}






#content{
margin-bottom: 15px;
}
Expand All @@ -67,7 +67,7 @@
<div class="container">
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<li class="nav-item active">
<a class="nav-link" href="#">Home</a>
</li>
<li class="nav-item dropdown">
Expand All @@ -84,9 +84,9 @@
<li class="nav-item">
<a class="nav-link" href="#">Contacts</a>
</li>

</ul>

<div class="dropdown">
<button class=" dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="background-color:#17a2b8;border: none!important; ">
<i class="fa fa-user" style="font-size:28px;color: white; "></i>
Expand All @@ -95,11 +95,11 @@
<button class="dropdown-item text-center " type="button">Sign up</button>
<div class="dropdown-divider"></div>
<button class="dropdown-item text-center " type="button">Sign In</button>

</div>
</div>


</div>
</div>
</div>
Expand Down Expand Up @@ -132,7 +132,7 @@ <h1 class="display-4">Repeat</h1>
<!--how its work -->
<div class="jumbotron" style="padding-top: 2rem!important;padding-bottom:3rem!important;">
<div class="container">

<h1 class="display-4 text-center">HOW It work</h1>

<div class="row">
Expand Down Expand Up @@ -167,9 +167,9 @@ <h5 class="card-title">Coding</h5>
<a href="#" class="btn btn-primary">Details</a>
</div>
</div>
</div>
</div>
<div class="col-md-3 mt-sm-2 d-flex justify-content-center">

<div class="card" id="content"style="width: 18rem;">
<img src="images/club.jpg" class="card-img-top" alt="app development">
<div class="card-body" >
Expand All @@ -184,7 +184,7 @@ <h5 class="card-title">Club Activities</h5>


<div class="col-md-3 mt-sm-2 d-flex justify-content-center">

<div class="card" id="content"style="width: 18rem;">
<img src="images/images.png" class="card-img-top" alt="app development">
<div class="card-body" >
Expand Down Expand Up @@ -219,7 +219,7 @@ <h5 class="card-title">Development</h5>
<div class="container">
<div class="row">
<div class="col-md-8 mt-sm-2">


<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
Expand All @@ -244,7 +244,7 @@ <h5 class="card-title">Development</h5>
<div class="carousel-item">
<img src="images/club2.jpg" class="d-block w-100" alt="...">
</div>


<a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
Expand All @@ -263,7 +263,7 @@ <h1 class="text-center">Current Workshops</h1>
<p >Rows are wrappers for columns. Each column has horizontal padding (called a gutter) for controlling the space between them. This padding is then counteracted on the rows with negative margins. This way, all the content in your columns is visually aligned down the left side.
</p>
</div>

</div>
</div>

Expand Down Expand Up @@ -320,7 +320,7 @@ <h1 class="text-center mb-md-4">Trending Topics</h1>
</div>
</div>


</div>
</div>
<hr>
Expand All @@ -334,4 +334,4 @@ <h1 class="text-center mb-md-4">Trending Topics</h1>
<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/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
</body>
</html>
</html>
3 changes: 3 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 12 additions & 7 deletions v1/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,34 +38,39 @@ app.get("/bit/new",function(req,res)
{
res.render("html/new.ejs");
});

app.post("/bit",function(req,res){

//get data from from
var question =req.body.question;
var newquestion={question:question};





data.create(newquestion,function(err,newlycreated)
{
if(err)
{
res.render("bit/new");

}else
{
res.redirect("/bit");
}

});


});

app.use('/login', (req, res) => {
res.render("html/login")
})





app.listen(3000,function(){
console.log("server is started");
});
});
Loading