Skip to content

diegoemerique/reddit-mobile

 
 

Repository files navigation

Quick start

  1. Install npm dependencies: git submodule init && git submodule update && npm install
  2. Build: npm run build (optionally watch for updates with npm run watch)
  3. Run: dev: npm run dev-server production npm run server

Configuring your dev envirnoment

Create a file in the root called start.sh and make it executable chmod +x start.sh. This file is automatically ignore by git and you can use it to start the server instead of npm run.

Example

#!/bin/bash
GOOGLE_ANALYTICS_ID='UA-XXXXXX-1' \
LIVERELOAD=true \
DEBUG_LEVEL='info' \
OAUTH_CLIENT_ID=XXXXXXXXX \
SECRET_OAUTH_CLIENT_ID=XXXXXXXXX \
OAUTH_SECRET=XXXXXXXXX \
PROCESSES=2 \
API_PASS_THROUGH_HEADERS='accept-language' \
LOGIN_PATH="/login" \
MINIFY_ASSETS="false" \
STATSD_DEBUG="true" \
npm run dev-server

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 83.8%
  • CSS 14.1%
  • Python 1.1%
  • Other 1.0%