mapshare / mapshare/map-share-backend

Add .env.example for the project.

Open
#3 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue
Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Currently, MONGO_URL is written hardcoded in the mongoURL.js.

It affects building local development because every developer has a different environment.

This task is doing;
- Add dotenv module
- Make .env.sample and add to git
- Add MONGO_URL environment to .env.sample
- Add .env to .gitignore
- Replace hardcoded MONGO_URL to env value in the mongoURL.js

Example:
-

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting mongoURL.js to see how MONGO_URL is currently hardcoded, then review the existing .gitignore. Add the requested environment-template files and configuration, and verify that mongoURL.js reads the environment value while the real .env remains ignored.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, mongodb, nodejs
Domain
backend, databases
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.