Giter Site home page Giter Site logo

verekia / js-stack-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
150.0 12.0 32.0 575 KB

Final boilerplate code of the JavaScript Stack from Scratch tutorial –

Home Page: https://github.com/verekia/js-stack-from-scratch

License: MIT License

JavaScript 98.10% Shell 1.90%
react redux express immutablejs eslint flow yarn babel es6 javascript

js-stack-boilerplate's Introduction

How is it going everyone? My projects, blog, and consulting services are on v1v2.io. Cheers and keep on coding folks! ✌️

js-stack-boilerplate's People

Contributors

verekia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

js-stack-boilerplate's Issues

I have error when i use ssl+pm2

Hi, i have error in socket.io when i use ssl+pm2

i have change:
in src/server/index.js
`// @flow

import compression from 'compression'
import express from 'express'
import { Server } from 'https'
import fs from 'fs'
//import engineIO from 'engine.io'
import socketIO from 'socket.io'
import routing from './routing'
import { WEB_PORT, STATIC_PATH } from '../shared/config'
import { isProd } from '../shared/util'
import setUpSocket from './socket'

const app = express()
// flow-disable-next-line
var options = {
key: fs.readFileSync('./privkey1.pem'),
cert: fs.readFileSync('./cert1.crt'),
ca: fs.readFileSync('./lec.crt')
};
const http = Server(options, app)
const io = socketIO(http)
//const io = engineIO(http)
setUpSocket(io)

app.use(compression())
app.use(STATIC_PATH, express.static('dist'))
app.use(STATIC_PATH, express.static('public'))

routing(app)

http.listen(WEB_PORT, () => {
// eslint-disable-next-line no-console
console.log(Server running on port ${WEB_PORT} ${isProd ? '(production)' : '(development).\nKeep "yarn dev:wds" running in an other terminal'}.)
})`

and in package.json:
"prod:start": "cross-env NODE_ENV=production pm2 start lib/server -i 0 && pm2 logs",

and when i start yarn prod:start
my chrome have error with socket connect (error 400)
and error ssl sert with wss://***** connect

i try use engine.io but i d't know how do it...
pls help - how use engine.io in this project?
sorry for my english

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.