Code Monkey home page Code Monkey logo

sesior's Introduction

Sessions, Express, SocketIO, Redis

SESIOR is an AngularJS/NodeJS demo app which examplifies how sessions can be shared between NodeJS Express (v4.8.x) framework and Socket.IO (v1.0.x) using Redis for session storage.

Here is a blog post which explains how SESIOR works.

Installation

  • Install Git Bash (Windows users only)
  • Install NodeJS
  • Run InstallNpmDependencies.sh located in the root directory of the project
    • this will install all the needed npm and bower dependencies for both SESIOR.Node and SESIOR.SPA
  • Install Redis (for Windows users)
  • Setup SESIOR.Node/config.js if needed

Running the application

  • Start redis-server (for Windows users redis-X.Y/bin/release/redis-server.exe from the downloaded zip)
  • Run RunNode.sh to start the SESIOR.Node portion of the application (uses Nodemon)
  • Run RunSPA.sh to start the SESIOR.SPA portion of the application
  • If you're running Windows, you can add SESIOR.SPA/app to IIS and run it that way
    • make sure to set your SESIOR.SPA hostname in SESIOR.Node/config.js as allowed CORS origins
  • If you're running *NIX, read this

Older Express/SocketIO version branches

Deleting node_modules directory on Windows

Not all files from node_modules in SESIOR.SPA can be deleted normally because their filenames are too long, so use ClearSpaNodeModules.bat from the project root directory to do that

======================

Made at: Mono Software Ltd.

sesior's People

Contributors

tihomir-kit avatar

Watchers

 avatar  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.