GithubHelp home page GithubHelp logo

serverless / blog Goto Github PK

View Code? Open in Web Editor NEW
183.0 36.0 198.0 4.37 MB

serverless.com/blog – Posts from the Serverless community & core team. Contributions welcome!

Home Page: https://serverless.com/blog/

JavaScript 100.00%
serverless serverless-framework blog

blog's Introduction

Welcome to the serverless blog repo! Contributions, typo fixes and pull requests are welcome 👍

Table of Contents

Click to expand

1. Write your content in markdown!

New to markdown? Read this

Need Content ideas? Read this


2. Name your post file name

YYYY-MM-DD-blog-post-name.md 👉 2016-01-27-post-title-here.md

handy tool for slugifying titles


3. In your post, include post meta information:

Include the post metadata at the top:

---
title: My awesome post title
description: "This post is about awesome stuff!"
date: 2016-07-25
thumbnail: 'http://url-to-thumbnail.jpg'
layout: Post
authors:
  - FirstnameLastname
---

Below the post meta, add your markdown:

# Post Heading

This is an awesome paragraph!

## Post SubSection

[Link example](http://my-full-url-with-http-at-the-front.com)

* List item 1
* List item 2
* List item 3

```js
// code snippet example with javascript (js) syntax highlighting
console.log('JS code')
```

Questions about formatting? See a complete post example


4. Add categories

Choose appropriate categories for the blog post from the list of categories available here. Multiple categories can be assigned to a blog post.

The values that are supplied for categories for the blog post must match any of the keys in the (categories.json)[./categories.json]

If you want to add a new category, you can add another entry at categories.json and use it in the blog post.

---
layout: Post
title: David's Amazing Post
categories:
  - guides-and-tutorials
  - user-stories
---

4. Add your author bio

If you haven't created an author bio in the /authors folder. Go ahead and do that now.

The name of the file should be the same as the name field used in the blog post meta data. Format: FirstnameLastname (note the caps and no space!)

Example authors/DavidWells.json and DavidWells in the authors field below are the same name and capitalization.

---
layout: Post
title: David's Amazing Post
authors:
 - DavidWells # references data in authors/DavidWells.json file
---

5. Submit a PR to the repository

Serverless team members

click here to add a post or submit a PR.

External contributors

Fork this repo and submit a PR. This video guide will walk you through the process

We will review and publish your post with our audience on serverless.com and share it all around the web!

Ping us with any questions on Twitter or post an issue and we will get back with you shortly.


6. (optional) Preview your post

Curious about what your post will look like on the live site? You can preview your post by cloning down the site repo, installing the dependencies and running npm start.


Updating featured posts

The file featured-blogs.json contains a list of file names(excluding date and extension) of the blog posts to be featured on the website.

If the blog file name is 2016-06-28-serverless-v1-0-alpha-release-1.md, then the file name to be added in the featured-blogs.json file is: serverless-v1-0-alpha-release-1.

The order of the file names in this file defines the order of featured posts on the website.

Including Custom Scripts

Note: For security purposes, all scripts referenced are vetted and hosted via our s3 bucket.

If you need to include a custom script for demo purposes, you will need to send the script over to us for review.

# blog post frontmatter
layout: Post
title: David's Amazing Post
scripts:
  - https://link-to-custom-js-in-s3-bucket.js
  - http://link-to-custom-js-two-in-s3-bucket.js
inlineJS: |
  console.log('hi')
  console.log('this is a multiline inline JS that will run in the post')

Markdown Resources

Our blog posts are written in markdown and support standard Github flavored markdown. If you are new to markdown, don't fret, check out this handy how to guide on writing in markdown

Need a markdown editor? Give stackedit.io, Byword or typora a spin.

Need to convert a Google doc to markdown? Install this chrome extension

Need to convert HTML to markdown? You can use this handy html to markdown converter

Need to convert Word to markdown? You can use this handy Word to Markdown Converter

Recommended Writing Apps

hemingwayapp - Hemingway helps you write with power and clarity by highlighting adverbs, passive voice, and dull, complicated words

blog's People

Contributors

0xflotus avatar ac360 avatar adnanrahic avatar alexdebrie avatar andrea-p avatar davidwells avatar douweh avatar dschep avatar eahefnawy avatar fernando-mc avatar flomotlik avatar garethmcc avatar horike37 avatar laardee avatar plfx avatar pmuens avatar rupakg avatar schickling avatar shortjared avatar sid88in avatar skierkowski avatar stefmonge avatar svetlana-sts avatar tbarlow12 avatar thomcrowe avatar tonyspiro avatar trilom avatar victor-stone avatar worldsoup avatar xf10w avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blog's Issues

How to add image (screen shot) in blog?

As title, if I want to add several screen shots in blog, how to add?

Review the exist blog, they use the s3 link, but how to know the link for the image I will upload.

Unable to create resource at path

https://github.com/serverless/blog/blob/master/posts/2018-05-07-how-create-rest-api-serverless-components.md

I am following the above post, getting an error when running 'components deploy'

BadRequestException: Errors found during import: Unable to create resource at path '/\leads': Resource's path part only allow a-zA-Z0-9._- and curly braces at the beginning and the end. Unable to create resource at path '/\leads\{id}': Resource's path part only allow a-zA-Z0-9._- and curly braces at the beginning and the end. at Object.extractError (C:\Users\jento\AppData\Roaming\npm\node_modules\serverless-components\registry\aws-apigateway\node_modules\aws-sdk\lib\protocol\json.js:48:27) at Request.extractError (C:\Users\jento\AppData\Roaming\npm\node_modules\serverless-components\registry\aws-apigateway\node_modules\aws-sdk\lib\protocol\rest_json.js:52:8) at Request.callListeners (C:\Users\jento\AppData\Roaming\npm\node_modules\serverless-components\registry\aws-apigateway\node_modules\aws-sdk\lib\sequential_executor.js:105:20) at Request.emit (C:\Users\jento\AppData\Roaming\npm\node_modules\serverless-components\registry\aws-apigateway\node_modules\aws-sdk\lib\sequential_executor.js:77:10) at Request.emit (C:\Users\jento\AppData\Roaming\npm\node_modules\serverless-components\registry\aws-apigateway\node_modules\aws-sdk\lib\request.js:683:14) at Request.transition (C:\Users\jento\AppData\Roaming\npm\node_modules\serverless-components\registry\aws-apigateway\node_modules\aws-sdk\lib\request.js:22:10) at AcceptorStateMachine.runTo (C:\Users\jento\AppData\Roaming\npm\node_modules\serverless-components\registry\aws-apigateway\node_modules\aws-sdk\lib\state_machine.js:14:12)

I tried removing {id}, but still get the same error.

Please help. My serverless.yml

....
type: rest-api
    inputs:
      gateway: aws-apigateway
      routes:
        /leads:
          post:
            function: ${createLead}
            cors: true
          get:
            function: ${listLeads}
            cors: true
          /{id}:
            get:
              function: ${getLead}
              cors: true
....

FOLIT

"Flash of Lorium Ipsum Text"
When initially loading the blog route, I got a page full of lorium Ipsum text, then a server error, then an error page, then a redirect to the actual live blog.
FireFox dev nightly & Chrome current on Win10, T1 over good WiFI.

I'd assume 'serverless' web pages would be prerendered as static pages with real data, or at least 'above the fold' is prerendered, & more is loaded after the initial.

DX Github link is double-escaped

The link to Github at the bottom of the "CLI Autocomplete" section in the most recent 1.15 blog post double-escapes the encoded characters and ends up going to the default Issues page.

The url currently in the page is this:
https://github.com/serverless/serverless/issues?utf8=%E2%9C%93&q=is%253Aissue%20is%253Aopen%20DX%253A%20

But should be this:
https://github.com/serverless/serverless/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20DX%3A%20

I don't think there's an easy way to fix this in the post (I tried by the spaces in the query kill the markdown url). This would probably need to be changed in whatever is rendering the markdown for the site.

RSS feed?

I forked the blog repo thinking it was a simple jekyll website but it's not. And it seems more complicated than I thought to add a page which is not a text.

Anyway, I think it could be useful if the blog has a RSS feed ! Like https://serverless.com/blog/index.xml or https://serverless.com/blog/rss.xml

Endless pagination

Right now the pagination is kind of "endless" as I can click on "next" at the bottom of the page for as long as I want. The number in the URL increases that way.

Command (or Cmd) ⌘ + Click not opening post in new tab

I would like to be able to scroll through a bunch of blog post summaries on the blog home page and ⌘ + Click the titles to bring each up in a new tab; however, for me, this functionality is not working. The page opens in the same tab as the summaries. I am using MacOS and the latest Chrome.

AWS Lambda now supports NetCore 3.1 should we update the blog runtimes?

AWS announces that AWS Lambda now supports .NET Core 3.1

I think that it could be a good idea to include that runtime in the language-runtimes section of the next blog.

https://serverless.com/aws-lambda/#languages-runtimes

Is this transparent for the serverless framework or does it requires some code to build the compatibility of the new runtime?

Announcement: https://aws.amazon.com/about-aws/whats-new/2020/03/aws-lambda-now-supports-net-core-3-1/

Link broken for HTML to Markdown

I tried to access one of your provided link looks be broken or invalid URL. Please provide the correct link that relates to "Need to convert HTML to markdown?"

missing template file for building-a-serverless-screenshot-service-with-lambda

https://serverless.com/blog/building-a-serverless-screenshot-service-with-lambda/
I tried to use the Launch stack button provided in the blog post but the template url does not seem to be working.

https://s3-eu-west-1.amazonaws.com/serverless-screenshots-service/2016-09-23T12:50:03/template.yml seems to not exist - I'm getting

Template validation error: S3 error: The specified bucket does not exist For more information check http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html

python rest api serverless tutorial refers to wsgi.handler which appears to be outdated

I'm following https://serverless.com/blog/flask-python-rest-api-serverless-lambda-dynamodb/.

When I run sls deploy I receive the following warning:

$ sls deploy
[...]
Serverless: Warning: Please change "wsgi.handler" to "wsgi_handler.handler" in serverless.yml                                                                             
Serverless: Warning: Using "wsgi.handler" still works but has been deprecated and will be removed                                                                         
Serverless: Warning: More information at https://github.com/logandk/serverless-wsgi/issues/84                                                                             
Serverless: Using Python specified in "runtime": python3.7
[...]

I'm using the python3.7 runtime. I'm unsure if this warning is present with python3.6.

My serverless.yml file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.