Welcome to the backend of DevLabs, the platform that connects users with a collection of free tools from the open-source community. This backend repository powers the server-side logic and facilitates seamless interactions with the database.
- Node.js - A JavaScript runtime for server-side development.
- Express.js - A minimal and flexible Node.js web application framework.
- MongoDB - A NoSQL database for storing tool data.
- Mongoose - An ODM (Object Data Modeling) library for MongoDB and Node.js.
-
Clone the repository:
git clone https://github.com/username/Devlabs-backend.git
npm install
`
### 3. Start development Server
```bash
npm start
MONGODB_URI=<mongodb connection uri for the database>
PORT=<port number on which backend is running>
FRONTEND_URL=<url of the frontend>
MAIL=<email from which to send mail to self>
PASSWORD=<passkey corresponding to above mail>
All the environment variables for react must be prefixed with REACT_APP_
.
REACT_APP_BACKEND=<url of the backend>
git checkout -b YourBranchName
Add new tool :
Go to src > DB >
product.json
& add your code
{
productName: "< App_Name >",
category: "remote | resume | tweet | ai | ethical | movies | extensions | tools",
image: "< Image-Url >",
link: "< Link_to_the_website >",
description: "< Description of product >"
},
To ensure that your URLs are short, it is recommended to use bitly for URL shortening. Description should not exceed 10-12 words
package.json
or package-lock.json
file
git add .
or git add *
Instead, stage your changes for each file/folder
By using public path it means it will add all files and folders under that folder, it is better to be specific
git add "<files_you_have_changed>"
git commit -m "<your_commit_message>"
git push origin YourBranchName
10. Create a Pull Request!