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
58 changes: 57 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,57 @@
npm start
# Job Portal Website

## Introduction

This project is a job portal website that aims to connect job seekers with potential employers. It features job listings, user profiles, and company rankings, providing a comprehensive platform for job hunting and recruitment.

## Running the Project Locally

To run this project on your local machine, follow these steps:

1. Clone the repository using the command `git clone [repository-url]`.
2. Navigate to the project directory and install dependencies by running `npm install`.
3. Start the server with `node server.js` or the equivalent command.
4. Ensure you have the prerequisites installed: Node.js, npm, and MongoDB.
5. Set up your environment variables according to the `.env.example` file provided.

## Project Structure

The project is structured as follows:

- `server.js`: The entry point of the application that initializes the server.
- `routes/`: Contains all the route definitions for the application.
- `models/`: Houses the Mongoose models for user profiles, job listings, and company rankings.
- `public/`: Contains static files like HTML, CSS, and client-side JavaScript.
- `views/`: Stores the EJS templates for rendering dynamic content.
- `config/`: Includes configuration files for the database and other services.

This structure facilitates the interaction between the client-side components (HTML, CSS, JavaScript) and the server-side logic.

## Usage

To use the website:

- Navigate to the homepage to view the latest job listings.
- Sign up or log in to create a user profile and apply for jobs.
- Access the company rankings to see top-rated employers.

## Technologies Used

- HTML
- CSS
- JavaScript
- Node.js
- Express
- MongoDB

## External Resources

For further understanding or extending the project, you might find the following resources helpful:

- [Node.js Documentation](https://nodejs.org/en/docs/)
- [Express Documentation](https://expressjs.com/en/4x/api.html)
- [MongoDB Setup Guide](https://docs.mongodb.com/manual/installation/)

## Contact Information

For support or inquiries, please reach out to the maintainers at [contact@example.com](mailto:contact@example.com).
4 changes: 2 additions & 2 deletions job-posting.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Post a Job - True Up</title>
<link rel="stylesheet" href="styles/main.css">
<script src="js/interactivity.js" defer></script>
<script src="public/js/interactivity.js" defer></script>
</head>
<body>
<header>
<h1>Post a Job</h1>
<p>For more information on project setup and execution, please see the <a href="README.md">README.md</a>.</p>
</header>
<main>
<form id="jobPostForm">
Expand Down Expand Up @@ -39,7 +40,6 @@ <h1>Post a Job</h1>
<script>
document.getElementById('jobPostForm').addEventListener('submit', function(event) {
event.preventDefault();
// Assuming a function submitJobPosting exists in interactivity.js
submitJobPosting({
jobTitle: document.getElementById('jobTitle').value,
companyName: document.getElementById('companyName').value,
Expand Down
8 changes: 4 additions & 4 deletions public/trending.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Trending Page</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="public/styles/main.css">
<style>
.card {
margin-bottom: 20px;
Expand Down Expand Up @@ -268,9 +268,9 @@ <h5 class="modal-title" id="reactModalLabel">React</h5>
</div>

<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.4/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.4/dist/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script src="public/js/interactivity.js"></script>

</body>
</html>

</html>
3 changes: 3 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const PORT = process.env.PORT || 3000;

const authRoutes = require('./routes/authRoutes');
const jobRoutes = require('./routes/jobRoutes');
const authMiddleware = require('./routes/middleware/authMiddleware');

mongoose.connect(process.env.DB_CONNECTION_STRING, {
useNewUrlParser: true,
Expand All @@ -32,6 +33,7 @@ app.set('view engine', 'ejs');

app.use(authRoutes);
app.use(jobRoutes);
app.use(authMiddleware);

app.use((err, req, res, next) => {
console.error(err.stack);
Expand All @@ -41,3 +43,4 @@ app.use((err, req, res, next) => {
app.listen(PORT, () => {
console.log(`Server is running on http://localhost:${PORT}`);
});
```