The Wayback Machine - https://web.archive.org/web/20200910112555/https://github.com/Authing/foto
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
fe
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Foto - Serverless Social Photo App

A social photo app using serverless framework and Authing. This is a work in progress (see issues for planned enhancements - help welcome!). It's a great app for learning and trying out Tencent Cloud and it is useful for managing your own photos.

Demo

foto in chrome screenshot

Currently the foto serverless project includes:

  • Web App (Vue)

  • All resources defined and deployed using serverless framework Infra as Code

  • Authing and serverless-oidc for auth

  • Strapi for storage and API

  • Tencent SCF for API and hosting website

  • link: Foto

Requires

  • Node 8.10.0 (matches Tencent Cloud env)
  • yarn (or npm)
  • serverless framework yarn global add serverless
  • Authing account: https://sign.authing.cn

Deploy

You can deploy from your computer using the serverless CLI.

Deploy Front-end

  • cd ./fe && npm install && cd ../
  • sls --debug

Deploy API

  • cd ./serverless
  • sls --debug

Local development

Local mocking of Tecent Cloud is fraught. I've stopped doing it as the upkeep is not worth the value I get. I prefer to deploy straight to cloud after thorough TDD locally.

Front-end dev commands

  • npm run dev

API dev commands

  • sls --debug

Troubleshooting

Things will go wrong - with TencentC clou pretty much everything can be configured so there are a lot of moving parts. Guiding principles are:

  • if something suddenly isnt working it's always user error
  • Search for help, there are heaps of discussions at serverless forums and on stack overflow
  • If you're stumped the problem is quite possibly not where you think it is. E.g

Contributing

Yes! Do it.

Dev setup:

  • use tslint
  • editorconfig
  • unit tests are awesome
  • functional tests are superb

About

Using Serverless Framework and Authing to build a Social Photo Web App.

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.