🚀 APIHub
- A Hub of APIs where users can display their APIs and share it with others to use them and create a beautiful frontend on top of the APIs
- A Playground is created for users to test an API by passing headers, body, and query parameters along with the API URL.
- Project also contains a Background Remover application to remove the background of an image(uses remove.bg API).
- Background Remover application is presented as an example for other users to create a web app by taking inspiration from APIs present on the explore page.
Live Website - APIHub
YouTube Video - YT
backend
src
middlewares -> contains the middleware functions
models -> contains the models/schemas
routes -> contains the apis
startup -> contains startup files
utils -> contains utility functions
frontend
src
assets -> contains logos, images, etc.
components -> react components
pages -> contains the web pages
utils -> utility functions
- Git
- Node & npm
- MongoDB
$ git clone https://github.com/jainaayush01/apihub/
-
Run following commands:
$ cd frontend $ npm install
-
Copy & rename
.env.example
to.env
-
Add following environment variables:
SKIP_PREFLIGHT_CHECK=true REACT_APP_BACKEND_URL=http://localhost:8001
-
start and you are ready to go
$ npm run start
-
Open another terminal and run following commands:
$ cd backend $ npm install
-
Copy & rename
.env.example
to.env
-
Add following environment variables:
MONGODB_URI= PORT= JWT_SECRET= // random string BGREMOVER_API_KEY= // go to remover.bg and get your api key
-
start and you are ready to go
$ npm run dev ``
Aayush Jain