bf-swag

所属分类:托管/部署
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2017-09-06 16:19:02
上 传 者sh-1993
说明:  自托管Web应用程序,从战场1创建统计图像。
(Self hosted webapp that creates stats images from battlefield 1.)

文件列表:
cache.js (1987, 2017-09-06)
client/ (0, 2017-09-06)
client/assets/ (0, 2017-09-06)
client/assets/ellipsis.svg (6204, 2017-09-06)
client/elements/ (0, 2017-09-06)
client/elements/ellipsis.js (6314, 2017-09-06)
client/elements/note.js (147, 2017-09-06)
client/index.js (3307, 2017-09-06)
client/pages/ (0, 2017-09-06)
client/pages/home.js (3014, 2017-09-06)
client/polyfill.js (383, 2017-09-06)
client/styles/ (0, 2017-09-06)
client/styles/main.css (3653, 2017-09-06)
html-header-inject.js (1458, 2017-09-06)
index.js (1766, 2017-09-06)
jimp/ (0, 2017-09-06)
jimp/bannerCreator.js (1676, 2017-09-06)
jimp/base_bg.png (177686, 2017-09-06)
jimp/fonts/ (0, 2017-09-06)
jimp/fonts/bf-stroke/ (0, 2017-09-06)
jimp/fonts/bf-stroke/font-bf-stroke-lg.fnt (8712, 2017-09-06)
jimp/fonts/bf-stroke/font-bf-stroke-lg.png (50497, 2017-09-06)
jimp/fonts/bf-stroke/font-bf-stroke-md.fnt (8653, 2017-09-06)
jimp/fonts/bf-stroke/font-bf-stroke-md.png (36926, 2017-09-06)
jimp/fonts/bf-stroke/font-bf-stroke-sm.fnt (8591, 2017-09-06)
jimp/fonts/bf-stroke/font-bf-stroke-sm.png (24291, 2017-09-06)
jimp/fonts/bf-stroke/font-bf-stroke-xs.fnt (8410, 2017-09-06)
jimp/fonts/bf-stroke/font-bf-stroke-xs.png (11159, 2017-09-06)
jimp/fonts/bf/ (0, 2017-09-06)
jimp/fonts/bf/font-bf-lg.fnt (8686, 2017-09-06)
jimp/fonts/bf/font-bf-lg.png (14468, 2017-09-06)
jimp/fonts/bf/font-bf-md.fnt (8633, 2017-09-06)
jimp/fonts/bf/font-bf-md.png (10597, 2017-09-06)
jimp/fonts/bf/font-bf-sm.fnt (8551, 2017-09-06)
jimp/fonts/bf/font-bf-sm.png (7211, 2017-09-06)
jimp/fonts/bf/font-bf-xs.fnt (8333, 2017-09-06)
jimp/fonts/bf/font-bf-xs.png (3257, 2017-09-06)
jimp/loadBaseAssets.js (1731, 2017-09-06)
... ...

# bf-swag This is a self-hosted application that requires some setup to use. To get started, you'll need to have a few things: 1. [NodeJS](http://nodejs.org) v7 installed. 2. A system running with BASH (A native shell used by Linux and OSX, windows is not supported but cygwin might work) 3. A TRN Api key, you can get one at https://battlefieldtracker.com/site-api ## Environment Variables Instead of hard-coding any configuration, this standalone application uses environment variables. The following are used:
KeyDescription
TRN_API_KEYRequired API Key required to comminucate with battlefieldtracker.com
NODE_ENVUse "production" for an optimized version, anything else is considered "development" (is "development" by default)
HOSTOptional domain host - falls back to IP
IPOptional ip - falls back to 0.0.0.0
PORTOptional port - falls back to 3000
REDIS_URLOptional URL to your redis endpoint - if blank redis is not used
KEEN_PROJECT_IDOptional, Keen analytics project ID - ignore if you dont want to use.
KEEN_WRITE_KEYOptional, Keen analytics write key - ignore if you dont want to use.
## Installation Download [NodeJS](http://nodejs.org) Clone this project: ``` git clone https://github.com/MattMcFarland/bf-swag ``` Install Dependencies: ``` npm install ``` Start the application: ``` npm start ``` ## Using production environments It is highly recommended you use a cloud platform that takes advantage of the nodejs pipeline. Heroku, MS Azure, Google CLoud Compute, and Amazon AWS are all viable options. I personally used Heroku for this project and found it to be the easiest. ### Usage on a (virtual or not) dedicated server If you are planning on running this on your own managed server - some extra steps will be necessary, and the installation will be more difficult! It might be worth it to install `pm2` http://pm2.keymetrics.io/ To run with apache, see http://stackoverflow.com/questions/9831594/apache-and-node-js-on-the-same-server If you are running with nginx - see https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-16-04

近期下载者

相关文件


收藏者