-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
99 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,21 @@ | ||
<h1>About</h1> | ||
<h1>About</h1> | ||
<br/> | ||
<h4>Hello, this is Sumanth JM</h4> | ||
<h4>This is my first web application using NodeJs, ExpressJs, and MongoDB. Do support.</h4> | ||
<h4>This web application requires Node.js and a MongoDB database (with a free cluster available). You'll also need to create a `.env` file to securely store your credentials, including the MongoDB URI and a JWT secret for authentication. | ||
|
||
Once you have Node.js installed and your MongoDB cluster set up, create a `.env` file in the root directory of the project and add your MongoDB URI and a JWT secret according to the provided example format. | ||
|
||
To install the necessary dependencies for the project, run `npm install`. After installing dependencies, you can start the server by running `npm run dev`. | ||
|
||
This web application provides a platform for building a blog. It includes features for user authentication and utilizes JSON Web Tokens (JWT) for secure authentication. The MongoDB database serves as the backend storage for the blog content, and the Node.js server handles the application logic and communication with the database. | ||
|
||
By following the installation steps and starting the server, you can run the web application locally, allowing you to create and manage a blog with user authentication and secure database storage.</h4> | ||
|
||
|
||
<a href="https://twitter.com/jm_sumanth"><b>X</b></a> | ||
|
||
<br/> | ||
<br/> | ||
|
||
<a href="https://github.com/Smnthjm08"><b>GitHub</b></a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
<h1>Contact</h1> | ||
<h1>Contact</h1> | ||
|
||
|
||
|
||
<a href="https://twitter.com/jm_sumanth"><b>X</b></a> | ||
<br/> | ||
|
||
<a href="https://github.com/Smnthjm08"><b>GitHub</b></a></h4> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
<header class="header"> | ||
<a href="/" class="header__logo">Blog🖌️</a> | ||
|
||
<a href="/" class="header__logo">NodeJs</a> | ||
<nav class="header__nav"> | ||
<ul> | ||
<li> | ||
<a href="/" class="<%= isActiveRoute("/", currentRoute) %>">Home</a> | ||
</li> | ||
<li> | ||
<a href="../about.ejs" class="<%= isActiveRoute("/about", currentRoute) %></a>">About</a> | ||
</li> | ||
<li> | ||
<a href="../contact.ejs" class="<%= isActiveRoute("/contact", currentRoute) %></a>">Contact</a> | ||
</li> | ||
</ul> | ||
<ul> | ||
<li> | ||
<a href="/" class="<%= isActiveRoute('/', currentRoute) %>">Home</a> | ||
</li> | ||
<li> | ||
<a href="/about" class="<%= isActiveRoute('/about', currentRoute) %>">About</a> | ||
</li> | ||
<li> | ||
<a href="/contact" class="<%= isActiveRoute('/contact', currentRoute) %>">Contact</a> | ||
</li> | ||
</ul> | ||
|
||
</nav> | ||
|
||
<div class="header__button"> | ||
<button class="searchBtn" aria-expanded="false"> | ||
Search | ||
|
||
<svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M7.79167 13.4583C10.9213 13.4583 13.4583 10.9213 13.4583 7.79167C13.4583 4.66205 10.9213 2.125 7.79167 2.125C4.66205 2.125 2.125 4.66205 2.125 7.79167C2.125 10.9213 4.66205 13.4583 7.79167 13.4583Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> | ||
<path d="M14.875 14.875L11.7938 11.7938" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> | ||
</svg> | ||
</button> | ||
<button class="searchBtn" aria-expanded="false"> | ||
Search | ||
<svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M7.79167 13.4583C10.9213 13.4583 13.4583 10.9213 13.4583 7.79167C13.4583 4.66205 10.9213 2.125 7.79167 2.125C4.66205 2.125 2.125 4.66205 2.125 7.79167C2.125 10.9213 4.66205 13.4583 7.79167 13.4583Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> | ||
<path d="M14.875 14.875L11.7938 11.7938" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> | ||
</svg> | ||
</button> | ||
</div> | ||
</header> | ||
|
||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,25 @@ | ||
<header class="header"> | ||
<a href="/" class="header__logo">Admin</a> | ||
|
||
<a href="/" class="header__logo">Admin Panel</a> | ||
<nav class="header__nav"> | ||
<ul> | ||
<li> | ||
<a href="/" class="">Home</a> | ||
</li> | ||
<li> | ||
<a href="../about.ejs" class="">About</a> | ||
</li> | ||
<li> | ||
<a href="../contact.ejs" class="">Contact</a> | ||
</li> | ||
</ul> | ||
<ul> | ||
<li> | ||
<a href="/" class="">Home</a> | ||
</li> | ||
<li> | ||
<a href="/about" class="">About</a> | ||
</li> | ||
<li> | ||
<a href="/contact" class="">Contact</a> | ||
</li> | ||
</ul> | ||
|
||
</nav> | ||
|
||
<div class="header__button"> | ||
<a href="/logout">Logout</a> | ||
<a href="/logout"> | ||
Logout | ||
</a> | ||
</div> | ||
</header> | ||
|
||
</header> |