Skip to content

Itsdenty/hack-ng-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

USAGE

  • Install Webtask

  • Clone this repository

  • Install dependencies

      npm i
    
  • Run + Deploy

        wt create index --secret MONGO_URL=<MONGO_URL> --secret CL_CLOUD_NAME=<CLOURINARY_CLOUD_NAME> --secret CL_API_KEY=<CLOURINARY_API_KEY> --secret CL_SECRET=<CLOURINARY_API_SECRET> --bundle --watch
    

You can use MongoLab for MongoDB storage. Sign up for free on Cloudinary for the credentials

Once above command deploys and watches for changes. Use the deploy URL as endpoints for your client app:

  • GET /images: List images

  • POST /images: Upload Image

    • name: file

Feel free to fork and extend if you need more endpoints

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published