Giter VIP home page Giter VIP logo

jsernews's Introduction

jsernews Build Status

jsernews is a Node.js port of the lamernews - an HN style social news site.

Getting Started

jsernews is a Node/Express/Redis/jQuery application. You need to install Redis and Node.js 7.x+ with the following node packages:

  • express
  • ioredis
  • reds
  • html5-gen
  • smtp-protocol
  • underscore
  • and so on...
# Get the latest snapshot
$ git clone https://github.com/7anshuai/jsernews.git

# Change directory
$ cd jsernews

# Install NPM dependencies
$ npm install

# Then simply start it
$ npm start

Please note that Node.js 7.6 was the first version of Node to support asynchronous functions without requiring a flag. You need to use the --harmony flag if your Node.js version is between 7.0 to 7.5 (inclusive).

Data Layout

At the moment it is compatible with the redis structure used by Lamer News 0.11.0.

Docker

You will need docker and docker-compose installed to build the application.

After installing docker, start the application with the following commands:

# To build the project for the first time or when you add dependencies
$ docker-compose build web

# To start the application (or to restart after making changes to the source code)
$ docker-compose up web

To view the app, find your docker ip address + port 3000 ( this will typically be http://192.168.99.100:3000/ ).

Testing

$ npm test

Website using this code

License

MIT

jsernews's People

Contributors

7anshuai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

jsernews's Issues

Unhandled promise rejection

UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 5): ReplyError: ERR value is not an integer or out of range

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.