Pradumnasaraf / OpenSource-API

A free and public Open Source API.

Home Page:https://opensourceapi.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenSource API banner

An Open Source, free, and public API.

Publish Docker Image to DockerHub Publish Image to GitHub Container Registry Unit Tests + Lint Format


🛠️ Technlogies used

Server Database Testing Deployment
Node.js, Express, Mongoose MongoDB Mocha, Chai Vercel

📌 Endpoints

Endpoints Description Method
/ Home page. GET
/api/devtip Returns a list of dev tips. GET
/api/devtip/:id Returns a single dev tip. GET
/api/devtip Creates a new dev tip. POST
/api/devtip/:id Updates a dev tip. PATCH
/api/devtip/:id Deletes a dev tip. DELETE

👨‍💻 Developing the API

This section includes how to test and develop API at your end. You can either run it in the cloud using Gitpod or run it inside a container using docker or choose to set up the complete environment locally.

GitPod

Open in Gitpod

Docker Compose

Prerequisites - Docker and Compose installed in your local system.

You can run below command and you can access the API at localhost:9009

docker compose up

Local setup

Prerequisites- Node.js installed and a Mongo server on your localhost.

Make sure you have installed all the dependencies and you have a MongoDB server running on your local machine. Also, make sure are in the root directory of the project.

Step 1: Copy .env.example to .env.

npm run env

Step 2: Run the app in development mode.

npm run dev

🛡️ License

OpenSource API is licensed under the GPL-3.0 License - see the LICENSE file for details.

🤝 Support

Don't forget to leave a star ⭐️.

About

A free and public Open Source API.

https://opensourceapi.vercel.app

License:GNU General Public License v3.0


Languages

Language:JavaScript 76.2%Language:HTML 19.2%Language:CSS 2.9%Language:Dockerfile 1.3%Language:Shell 0.4%