Skip to content

willcrisis/adorable-avatars-cloud-functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adorable Avatars on Cloud Functions

After https://api.adorable.io has been taken down on Oct 14th, 2020, I decided to find a way of being able to continue using Adorable Avatars on a free-hosted server.

Firebase Functions have the ability to run an Express server, and since this would not have heavy usages which could lead me to undesired costs, I decided to deploy on it.

Requirements

In order to be able to deploy your own Adorable Avatars API, you will need the following:

  • Have Firebase CLI installed and logged in (run firebase login after it's installed)
  • NodeJS 10 (I recommend using NVM to install. It needs to be version 10, otherwise Firebase will fail)

How to use

  • Create a new Firebase project in Firebase Console
  • Upgrade the project to Blaze plan (it's billed according to use, but it has pretty decent quotas, and can be used for free while quotas are not exceeded. Functions are only available on Blaze plan projects now)
  • Clone this repo
  • Change the project key in .firebaserc to match your newly created project's one
  • Inside functions folder, run npm install or yarn
  • To test locally, run npm run serve or yarn serve
  • To deploy the function, run firebase deploy

After deploying, the API will be available at https://<firebase-functions-generated-url>/avatars/.

All endpoints from avatars-api-middleware will be available.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published