This is the server-side application for the ScholarHub website, which facilitates the backend operations for the scholarship booking platform.
- User Authentication and Authorization
- Manage Scholarship Listings
- Search and Filter Scholarships
- User Reviews and Ratings
- Notifications for New Scholarships
- Node.js
- Express.js
- MongoDB
- JWT for Authentication
- Mongoose for MongoDB Object Modeling
-
Clone the repository:
git clone https://github.com/yourusername/scholarhub-server.git cd scholarhub-server -
Install dependencies:
npm install
-
Set up environment variables: Create a
.envfile in the root directory and add the following:PORT=5000 MONGODB_URI=your_mongodb_uri JWT_SECRET=your_jwt_secret
-
Start the server:
npm start
- POST /api/auth/register: Register a new user
- POST /api/auth/login: Login a user
- GET /api/scholarships: Get all scholarship listings
- POST /api/scholarships: Create a new scholarship listing
- GET /api/scholarships/:id: Get a single scholarship listing by ID
- PUT /api/scholarships/:id: Update a scholarship listing by ID
- DELETE /api/scholarships/:id: Delete a scholarship listing by ID
- POST /api/reviews: Create a new review
- GET /api/reviews/scholarship/:scholarshipId: Get reviews for a specific scholarship listing
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'). - Push to the branch (
git push origin feature-branch). - Open a pull request.
This project is licensed under the MIT License.