Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huntermahmud/gadgetzone-server
This is job task of Programming Hero batch 9 server side.
https://github.com/huntermahmud/gadgetzone-server
expressjs mongodb nodejs
Last synced: about 2 months ago
JSON representation
This is job task of Programming Hero batch 9 server side.
- Host: GitHub
- URL: https://github.com/huntermahmud/gadgetzone-server
- Owner: HunterMahmud
- Created: 2024-08-14T15:14:22.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-17T05:02:26.000Z (5 months ago)
- Last Synced: 2024-08-17T07:22:16.001Z (5 months ago)
- Topics: expressjs, mongodb, nodejs
- Language: JavaScript
- Homepage: https://gadgetzone-1.web.app/
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GadgetZone Server
**Visit the live site:** [GadgetZone](https://gadgetzone-1.web.app/).
[Client Side Repository](https://github.com/HunterMahmud/GadgetZone-Client)
## Description
This is the server-side code for the GadgetZone application. It is built with Node.js, Express, and MongoDB.
## Prerequisites
- Node.js and npm installed on your machine.
- A MongoDB instance (local or remote).## Installation
1. **Clone the repository**:
```sh
git clone https://github.com/HunterMahmud/GadgetZone-Server.git
cd gadgetzone-server
```2. **Install dependencies**:
```sh
npm install
```3. **Set up environment variables**:
Create a `.env` file in the root of the project and add the following environment variables:
```env
DB_USER=your_mongodb_user
DB_PASS=your_mongodb_password
SECRET=your_jwt_secret
```Replace `your_mongodb_user`, `your_mongodb_password`, and `your_jwt_secret` with your actual values.
4. **Start the server**:
```sh
npm run dev
```The server should now be running and accessible at `http://localhost:your_port_number`.
## Scripts
- `dev`: Starts the server using `nodemon index.js`.
## Author
- Hasan Al Mahmud