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: 10 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 (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-04T08:54:48.000Z (about 2 months ago)
- Last Synced: 2024-11-04T09:33:41.505Z (about 2 months ago)
- Topics: express-js, mongodb, mongoose, node-js
- Language: JavaScript
- Homepage:
- Size: 69.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)
Variables for Cloudinary:
CLOUDINARY_NAME=
CLOUDINARY_KEY=
CLOUDINARY_SECRET=4. **Running the project:**
```bash
npm start
```Next, you can view the work of the server at http://localhost:3001