Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yarzik7/superhero-database-backend
Server for Superhero Database
https://github.com/yarzik7/superhero-database-backend
express-js mongodb mongoose node-js
Last synced: 16 days ago
JSON representation
Server for Superhero Database
- Host: GitHub
- URL: https://github.com/yarzik7/superhero-database-backend
- Owner: Yarzik7
- Created: 2024-10-23T12:20:53.000Z (23 days ago)
- Default Branch: main
- Last Pushed: 2024-10-27T19:32:54.000Z (18 days ago)
- Last Synced: 2024-10-27T22:09:44.741Z (18 days ago)
- Topics: express-js, mongodb, mongoose, node-js
- Language: JavaScript
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Installation
1. **Clone the repository to your local machine:**
```bash
git clone https://github.com/Yarzik7/superhero-database-backend.git
cd superhero-database-backend
```2. **Install the dependencies:**
npm:
```bash
npm install
```yarn:
```bash
yarn install
```3. **Setting environment variables:**
At the root of the project, create an .env file and add the following variables:
DB_URI=mongodb+srv://your_name:[email protected]/your_database?retryWrites=true&w=majority&appName=your_cluster (for MongoDB example)
PORT=your_port (3001 for default)
4. **Running the project:**
```bash
npm start
```Next, you can view the work of the server at http://localhost:3001