[PYTHON] [VueSlsApp] We have created a sample serverless application packed with development and operation know-how.

Note: This article is a reprint of the note article. If there is an update of the contents, the note will be updated. If the qiita article is out of date, please also check the note.

https://note.com/thiroyoshi/n/na16112b4ec1b


By packing my own serverless development know-how, I created a sample app that will be the basis of the app from development to operation.

Since it has been deployed, you can actually touch it from the following. https://vueslsapp.thiroyoshi.com/

The source is published below. https://github.com/thiroyoshi/vueslsapp

Motivation made

** I wanted to create a serverless architecture framework that can be used in production **

In a nutshell, that's all.

Up until now, I have been developing apps with a serverless architecture at work, and I felt that I had accumulated a lot of know-how.

I like going to hackathons and making apps myself, but I don't have a lot of time, so I was wondering if I could make more productive apps.

At that time, I had the opportunity to take a lot of time on a long-term overseas business trip, so I used it to make this mainly for myself in the future.

However, I thought it would be okay to make it public so that various people could see and use it, so I made it public first.

The feature is that all around the certification is included

As I wrote in the motive of ↑, I am conscious of being able to use it in production and increasing productivity, so I am aiming for everything including certification. If you dare to mention it as a feature, it is as follows.

――You can go through authentication --Sign up, login, logout, password change, unsubscribe --Authenticated REST API

For authentication, we use Cognito. Therefore, it is possible to process around authentication as described above using Cognito.

We have know-how on how to write as a REST API in AWS Lambda. Therefore, I made it as a framework independently as a commonality here.

As for Serverless Framework, I think I've used it for a while, so it may be the place where I have the most know-how such as how to divide files and how to divide the environment in development and production. In particular, the usage based on the recently added Serverless Dashboard may still have little know-how in the world, so I think that you can refer to it.

Technology used

This has a lot to do with my specialty, but Vue.js and Python can be replaced by other languages.

I will write an article explaining how to use it

I've packed some of my know-how, so I'd like to write a commentary on these.

First of all, I will write about how to deploy. As a result of packing various things, each one is easy, but the procedure itself is long, so I will explain it in another article.

I'll keep fixing it forever

We haven't packed up our know-how yet, and we plan to continue to incorporate and update what we have gained through our future development experience.

During my business trip, I wanted to make it public first, so I didn't prepare unit tests, refactoring wasn't enough, and there were a lot of miscellaneous parts, so I'll do that too.

Of course, if I modify the source, I will also modify the commentary article. The main additions and corrections that are currently expected are as follows. stay tuned.

--Multilingualization --Pagespeed Insight pointed out correction --HTTPS for Front Web --Refactoring (commonality, source code compliance, etc.) --Addition of Python unit tests --Addition of unit tests for Vue.js --Addition of automated tests for REST API

Recommended Posts

[VueSlsApp] We have created a sample serverless application packed with development and operation know-how.
I built an AWS Chalice development environment with docker and tried deploying a serverless application at super high speed
Build a machine learning application development environment with Python