Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

7anshuai/jsernews

Repository files navigation

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

About

The LN(lamer news) style social news site written in Node/Express/Redis/jQuery

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published