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
- link: Foto
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 ./serverlesssls --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

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

