https://github.com/sakib-333/whereisit-server
Serves all api response for the WhereIsIt client side.
https://github.com/sakib-333/whereisit-server
cookie cors dotenv expressjs jwt mongodb
Last synced: 2 months ago
JSON representation
Serves all api response for the WhereIsIt client side.
- Host: GitHub
- URL: https://github.com/sakib-333/whereisit-server
- Owner: sakib-333
- Created: 2025-01-05T09:48:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-12T13:58:54.000Z (over 1 year ago)
- Last Synced: 2025-07-08T00:52:22.673Z (12 months ago)
- Topics: cookie, cors, dotenv, expressjs, jwt, mongodb
- Language: JavaScript
- Homepage: https://ph-b10-a11-server.vercel.app
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WhereIsIt
This is a Node.js Express server that integrates several npm packages such as Express, MongoDB, Cookie-Parser, CORS, dotenv, JWT (JSON Web Token) Authentication. This one serves the client side of `WhereIsIt`.
## Features
- **Express.js**: Web framework for building the server
- **MongoDB**: Database for storing user data and other information
- **JWT Authentication**: Secure user authentication with JSON Web Tokens
- **Cookie-Parser**: Parsing cookies in requests
- **CORS**: Enabling cross-origin requests for the server
- **dotenv**: Environment variable management
## Prerequisites
Make sure you have the following installed on your local machine:
- [Node.js](https://nodejs.org/)
- A **MongoDB** instance (either local or cloud-based like MongoDB Atlas)
## Installation
1. Clone the repository to your local machine:
```bash
git clone git@github.com:sakib-333/whereisit-server.git
cd ph-b10-a11-server
```
2. Install dependencies
```bash
npm install
```
3. Create a `.env` file root of the folder and all of your secret keys.
```bash
DB_USERNAME=
DB_PASSWORD=
JWT_SECRET=
```
4. Start server
```bash
node index.js
```
5. Your server should now be running on `http://localhost:3000`.