Giter VIP home page Giter VIP logo

no-line's Introduction

No-line

Server Side Rendering App for online ordering

Table of Contents

  1. Usage
  2. Requirements
  3. Development
    1. Installing Dependencies
    2. Tasks

Usage

Requirements

  • Node 8.4.x
  • Redis 4.0.x
  • Postgresql 9.6.x

Development

Installing System Dependencies

brew install yarn
brew install redis
brew install postgresql

Installing App Dependencies

yarn install

App Configuration

Override settings config/default.json in any environment by making a copy of config/ENV.example.json and naming it config/ENV.json and setting the appropriate variable.

For environments that require use of environment variables, you can supply variables as defined in config/custom-environment-variables.json.

See https://www.npmjs.com/package/config And https://github.com/lorenwest/node-config/wiki/Environment-Variables#custom-environment-variables

Database Initialization

IMPORTANT: ensure postgres is running before performing these steps.

Database Creation:

Create database with createdb <database-name>

Setup environment variables in config/ENV.json

Running the App

To run server in development: yarn run dev

To run server in production: yarn start

To run tests: yarn run test

To run your redis server for the session store redis-server

Access the app from localhost:3000

no-line's People

Contributors

ericmai624 avatar ststar8623 avatar marcus avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar

no-line's Issues

Google oauth error

When using Google to sign in, after begin redirecting from /auth/google/callback, the user will receive the following error:
Error at /Users/{user}/Documents/projects/no-line/node_modules/passport-google-oauth20/lib/strategy.js:95:21 at passBackControl (/Users/{user}/Documents/projects/no-line/node_modules/oauth/lib/oauth2.js:132:9) at IncomingMessage.<anonymous> (/Users/{user}/Documents/projects/no-line/node_modules/oauth/lib/oauth2.js:157:7) at emitNone (events.js:110:20) at IncomingMessage.emit (events.js:207:7) at endReadableNT (_stream_readable.js:1059:12) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9)

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.