Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mskcc/sample-qc-node
https://github.com/mskcc/sample-qc-node
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mskcc/sample-qc-node
- Owner: mskcc
- Created: 2021-01-07T20:14:55.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-28T18:59:45.000Z (almost 4 years ago)
- Last Synced: 2023-08-06T05:35:24.020Z (over 1 year ago)
- Language: JavaScript
- Size: 1.07 MB
- Stars: 1
- Watchers: 12
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# IGO Data Team App Template
![Application UI](assets/app_view.png)
## Description
This is a barebones project exhibiting IGO Data Team's core stack - react, node, & mongo.Features Include:
* MSKCC/IGO design resources
* Axios Service Calls & Caching
* IGO Design resources and linting standards (taken from [igo-dot-files](https://github.com/mskcc/igo-data-dotfiles))
* CAS Authentication Setup
* Deployment/Build scripts in README filesPlease use this as a template, but modify and engineer as you see fit. Pull requests welcome!
## Dependencies
- mongo## QuickStart
### I) Frontend
```
$ cd ./template-frontend && npm install && npm run start
```
### II) Mongo
```
$ mongod
```
### III) Backend
```
$ cd ./template-backend && npm install && npm run dev
```## Please Read Before Deploying
Prior to deploying the application, please modify this template in a few sections so that they are relevant to your app.
### Makefile
Specify `[HOST]` to deploy to
```
deploy:
cd ./template-frontend && npm run build && cd - \
cd ./template-backend && npm run clean && cd - \
rsync template-backend [HOST]:deployments/app-template
```### template-frontend
./public/index.html
``````
./package.json
```
"name": "app-name",
```./manifest.json
```
"short_name": "Template Frontend",
"name": "Template Frontend",
```### template-backend
./bin/www
```
var debug = require("debug")("app-template:server");
```
./.env
```
mongoDB: app-template
```./app.js
```
// REMOVE ME - populateDB
const {populateDB} = require('./models/setup_deleteMe');
populateDB();
```package.json
```
"name": "template-backend",
```./models/setup_deleteMe.js
`DELETE`
./helpers/constants
```
exports.constants = {
logger: "app-template"
};
```./helpers/winston
```
label({label: "App-Template"}), // Added to log lines, e.g. { ..., "label":"App-Template"}
```## Requested Features
* Backend Tests
```
$ pwd
/app-template/template-backend$ npm run test
> [email protected] test /Users/streidd/work/app-template/template-backend
> ENV=test JWT_SECRET={ADD_JWT_SECRET} nyc _mocha --timeout 10000 --exit --report lcovonly -- -R specError: No test files found: "test"
----------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
----------|----------|----------|----------|----------|-------------------|
All files | 0 | 0 | 0 | 0 | |
----------|----------|----------|----------|----------|-------------------|
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] test: `ENV=test JWT_SECRET={ADD_JWT_SECRET} nyc _mocha --timeout 10000 --exit --report lcovonly -- -R spec`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:
npm ERR! /Users/streidd/.npm/_logs/2020-06-19T18_58_28_098Z-debug.log
```