Giter Site home page Giter Site logo

kenhorn / sessions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from architect-examples/sessions

0.0 0.0 0.0 8 KB

Example project for working with Architect JWE and database-backed sessions in JS or Python

License: Apache License 2.0

JavaScript 38.98% Python 49.22% Arc 11.79%

sessions's Introduction

Architect sessions example

A very simple example project for working with Architect JWE and database-backed sessions in JS or Python

This project comes in JavaScript (Node.js) and Python flavors, see: js/ and py/.

In both cases, the instructions for getting started are the same, as found below!

Getting started

  1. cd into js/ or py/
  2. Run: npm install; if using Python, also be sure to run pip3 install -r ./requirements.txt
  3. Start the Sandbox: npm run start
  4. Visit the test app at http://localhost:3333

Things to note

  • By default, this app is configured with DynamoDB-backed sessions; the easiest way to test JWE sessions is to comment out the contents of the .env file
  • This app is deployable! Ship it to AWS to test it live if you like.
  • Handler logic is found in src/http/:
    • get / - contains the basic session setup and web form
    • get /count - is a simple session counter incrementer endpoint
    • get /reset - is a simple session reset endpoint

sessions's People

Contributors

ryanblock avatar

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.