Skip to Content
Cloud Native Python
book

Cloud Native Python

by Manish Sethi
July 2017
Intermediate to advanced
374 pages
8h
English
Packt Publishing
Content preview from Cloud Native Python

Creating package.json

This file is, basically, metadata for your application, which contains the complete libraries /dependencies that need to be installed for your application. Another real-world advantage is that it makes your build reproducible, which means that it's way easier to share it with other developers. There are different ways in which you can create your customized package.json.

The following is the minimum information that needs to be provided in packages.json:

    "Name" - lowercase.
    "version"  - in the form of x.x.x
    
    For example:
    
    {
      "name": "my-twitter-package",
      "version": "1.0.0"
    } 

In order to create the package.json template, you can use the following command:

$ npm init              # in your workspace  

It will ask for values such as name, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python for DevOps

Python for DevOps

Noah Gift, Kennedy Behrman, Alfredo Deza, Grig Gheorghiu
Cloud Native

Cloud Native

Boris Scholl, Trent Swanson, Peter Jausovec

Publisher Resources

ISBN: 9781787129313Supplemental Content