Make sure you have Node.js installed. Also create the .env file and add environment variables as mentioned below.
git clone git@github.com:devansh016/launchpad-api.git
npm install
npm start
MONGODB_URL = mongodb+srv://userid:password@clusterx.xxxxx.mongodb.net/launchpad?retryWrites=true
Your app should now be running on localhost at port 80.
Gets all launchpad if no params used. Filter also available
-
URL
/launchpad
-
Method:
GET
-
URL Params
Optional:
launchpadId=[alphanumeric]
name=[alphanumeric]
active=[boolean]
company=[alphanumeric]
availability.start=[date]
availability.end=[date]
location.city=[alphanumeric]
location.country=[alphanumeric]
location.state=[alphanumeric]
-
URL
/launchpad/:launchpadId
-
Method:
GET
-
URL
/addLaunchpad
-
Method:
POST