Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bahinkor/sabzlearn-backend
Backend is an educational site developed with express.js framework.
https://github.com/bahinkor/sabzlearn-backend
backend express javascript nodejs
Last synced: 10 days ago
JSON representation
Backend is an educational site developed with express.js framework.
- Host: GitHub
- URL: https://github.com/bahinkor/sabzlearn-backend
- Owner: Bahinkor
- License: mit
- Created: 2024-10-06T11:58:47.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-10-17T12:04:17.000Z (4 months ago)
- Last Synced: 2024-10-20T13:44:43.497Z (4 months ago)
- Topics: backend, express, javascript, nodejs
- Language: JavaScript
- Homepage:
- Size: 1.83 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sabzlearn Backend Clone
This is a simple Sabzlean clone project built with Node.js for the backend. It utilizes MongoDB as the database for storing data.
## Getting Started
Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.
### Prerequisites
You need to have the following software installed on your system:
- Node.js
- MongoDB### Installing
1. Clone the repository to your local machine:
```
git clone https://github.com/Bahinkor/sabzlearn-backend.git
```2. Navigate to the project directory:
```
cd sabzlearn-backend
```3. Install dependencies:
```
npm install
```### Setting Up MongoDB
1. Make sure MongoDB is installed and running on your system.
2. Create a new database named `sabzleran`.
### Configuration
1. Create a `.env` file in the root directory of the project.
2. Add the following environment variables to the `.env` file:
```
PORT=8000
MONGO_URI=mongodb://localhost:27017/sabzleran
JWT_SECRET=random-secret-code
EMAIL_ADDRESS=email.example.com
EMAIL_PASSWORD=app-password
```### Running the Server
Start the server by running the following command:
```
npm start
```The server will be running on port 8000 by default.
## Usage
Once the server is running, you can access the application by navigating to `http://localhost:8000` in your web browser.