Skip to content

pauloapi/python-serverless-offline-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless Offline Template

This project was generated with Serverless CLI.

Prerequisites

Before you begin, make sure your development environment includes Node.js®, Python3.6, virtualenv, npm package manager and Serverless.

Node.js

Serverless requires Node.js version 6 or higher.

  • To check your version, run node -v in a terminal/console window.

  • To get Node.js, go to nodejs.org.

Python

This Project requires Python version 3.6.X.

  • To check your version, run python --version in a terminal/console window.

  • To get Python3.6, go to python.org.

npm package manager

Serverless depend on features and functionality provided by libraries that are available as npm packages. To download and install npm packages, you must have an npm package manager.

This setup guide uses the npm client command line interface, which is installed with Node.js by default.

To check that you have the npm client installed, run npm -v in a terminal/console window.

Serverless CLI

Install the Serverless CLI globally.

To install the CLI using npm, open a terminal/console window and enter the following command:

npm install -g serverless

Virtualenv

Install and use virtualenv

#Install virtualenv pip install virtualenv

#Create virtualenv virtualenv env

#unix: activate virtual environment . env/bin/activate #windows: activate virtual environment env\Scripts\activate

Gettings Started

Activate virtual environment and install python requirements

pip install -r requirements.txt

Development server

Activate virtual environment and run npm run offline for a dev server. Navigate to http://localhost:3000/. The app will automatically reload if you change any of the source files. To use other port, you may run npm run offline -- --port 3001.

Further help

To get more help on the Serverless CLI use serverless help or go check out the Serverless CLI Reference.

About

Python Serverless offline template

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages