CyanJS / cyan

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cyan

Run project

Server Listing by default localhost:8000

$ cd server/ && yarn start

Client Listing by default localhost:3000

$ cd client/ && yarn start

Code Style - JavaScript Standard Style

Standard - JavaScript style guide, with linter & automatic code fixer. Standard - Rules

Run test Code Style

$ yarn test

Install Project

Clone Project

$ git clone https://github.com/CyanJS/cyan.git

Create "Environment" files

& cp server/.env-example.js server/.env.js && cp client/.env-example.js client/.env.js

MongoDB

It is recommended to create the development database in the mLab. Tutorial

Config connection MongoDB(Mongoose)

Set configuration in file "server/.env.js". Example.

  ...
  'mongoose': {
    'connect': {
      'host': '*****.mlab.com',
      'port': '*****',
      'user': 'userdb',
      'password': 'password',
      'base': '*****'
    }
  },
  ...

Config Google Auth

Set configuration in file "server/.env.js". Example.

  ...
  'passport': {
    'google': {
      'id': '########.apps.googleusercontent.com',
      'secret': 'secretKey',
  ...

Config JWT secret token

Set configuration in file "server/.env.js". Example.

  ...
  'passport': {
    'jwt': {
      'secret': 'secretKey'
    }
  ...

Dependencies

The project using Yarn for install dependencies.

Install Yarn

$ npm install --global yarn

Install dependencies Client and Server

$ cd server/ && yarn && cd ../client/ && yarn && cd ../

About

License:MIT License


Languages

Language:JavaScript 92.7%Language:CSS 6.2%Language:HTML 1.1%