Skip to content

Fulong's Blog

All about technology, only original.

  • Home
  • Gentoo Linux
  • Python
  • Django Web
  • Tutorial

AWS Learning Diary – Day 1: The hello

Posted on June 10, 2021 - June 10, 2021 by Fulong Sun

Hello, everyone!

In this diary, we will build our first serverless page, which says the hello.

We will using these components of AWS below:

  • Lambda
  • API Gateway

We are going to write our business code as a function in AWS Lambda, and assign an URL to run and show the response of the function via the API Gateway component.

Create an AWS Lambda function

  1. Go to AWS Lambda dashboard page: https://console.aws.amazon.com/lambda/;
  2. Click the “Create function” button near the northeast corner;
  3. Choose the “Author from scratch” option;
  4. Enter the function name “hello”;
  5. Choose the runtime “Node.js 14.x”;
  6. Leave the rest things default;
  7. Click the “Create function” button near the southeast corner.

After, it will redirect you to the function page automatically.

Write the code

In the function page, you can see Code source panel with default folder “hello” and file “index.js”. Let’s double click on “index.js” to open it in the editor.

Now, paste the code below:

exports.handler = async (event) => {
    console.log(event)
    
    const response = {
        statusCode: 200,
        headers: {
            'Content-Type': 'text/plain'
        },
        body: 'Hello!',
    }

    return response
}

Posted in AWSLeave a comment

AWS Learning Diary – Overview

Posted on June 10, 2021 - June 10, 2021 by Fulong Sun

Hello everyone! long time no see!

This is a continuous diary of my study on AWS-based cloud native application development.

This is a real project of my friend about international student life in Boston.

In the project, we will use the following technologies:

Node.js
NoSQL
<TBD>

To be honest, I have no experience with all of the above, every technology is brand new to me, so this serial diary is suitable for every newbies.

Posted in AWSLeave a comment

Intro about online store tutorial

Posted on December 22, 2018 - December 22, 2018 by Fulong Sun

Hello everyone, after one year, I finally decided to write a tutorial on how to write an online store with Django (a high-level Python Web framework).

In fact, I’m not sure how many chapters, how long time, and how many times to adjust the content or structure now. Because it will cover the entire technology stack:

  • how to build development and environment on Linux;
  • how to use Django and Bootstrap for development;
  • how to use PayPal to collect money;
  • how to log in with Google and Facebook account;
  • how to share to Facebook and Twitter;
  • and more.

So please be patient…

Posted in Django Web, Gentoo Linux, Python, TutorialLeave a comment

Dial-in a SoftEther VPN Server (on Linux)

Posted on January 13, 2018 - January 14, 2018 by Fulong Sun

In this post, I will show you how to dial-in any SoftEther VPN server.

After this, you can connect to your Linode VPS from almost all Linux systems.
Continue reading “Dial-in a SoftEther VPN Server (on Linux)” →

Posted in Gentoo Linux, SoftEther VPNLeave a comment

Setting up Linode VPS as a VPN Server (via SoftEther)

Posted on January 12, 2018 - January 13, 2018 by Fulong Sun

In this post, I will show you how to setting up your Linode VPS as a VPN Server (via SoftEther).

After this, you Linode VPS can accept VPN dial-in.
Continue reading “Setting up Linode VPS as a VPN Server (via SoftEther)” →

Posted in Gentoo Linux, Linode VPS, SoftEther VPNLeave a comment

Gentoo Linux Quick Installation on Raspberry Pi

Posted on December 20, 2017 - November 16, 2020 by Fulong Sun

In this post, I will show you how to quickly install Gentoo Linux on the Raspberry Pi.

After this, you’ll get a bootable Gentoo Linux on your Raspberry Pi.
Continue reading “Gentoo Linux Quick Installation on Raspberry Pi” →

Posted in Gentoo Linux, RaspberryPi BoardLeave a comment

Hello world!

Posted on December 19, 2017 by Fulong Sun

Welcome to WordPress. This is your first post. Edit or delete it, then start writing!

Posted in Uncategorized2 Comments

Recent Posts

  • AWS Learning Diary – Day 1: The hello June 10, 2021
  • AWS Learning Diary – Overview June 10, 2021
  • Intro about online store tutorial December 22, 2018
  • Dial-in a SoftEther VPN Server (on Linux) January 13, 2018
  • Setting up Linode VPS as a VPN Server (via SoftEther) January 12, 2018

Useful Links

Gentoo Handbook Python Documentation Django Documentation SoftEther Documents

Referrals

Linode VPS: Use promo code DOCS10 for $10 credit on a new account.
Elink VPN: Use promo code we8 for an annual subscription of 20% off. Also working in China, just click “here”.

Donate Me

PayPal Me: Thanks for your support!

Site Statistics (Since Dec 20, 2017)

  • 57,791
  • 11,326
  • 4,182
  • 7
  • 0
Proudly powered by WordPress | Theme: micro, developed by DevriX.