Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ltfschoen/meteor-rumedge
Meteor app using MongoDB uses CRUD interface to generate candidate skills profile and show statistics
https://github.com/ltfschoen/meteor-rumedge
api blaze buildpack crud es6 heroku heroku-buildpack material-ui meteor mongodb nodejs reactjs yarn
Last synced: about 1 month ago
JSON representation
Meteor app using MongoDB uses CRUD interface to generate candidate skills profile and show statistics
- Host: GitHub
- URL: https://github.com/ltfschoen/meteor-rumedge
- Owner: ltfschoen
- Created: 2017-04-04T00:29:06.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-04T08:42:20.000Z (almost 8 years ago)
- Last Synced: 2024-10-19T16:01:51.768Z (3 months ago)
- Topics: api, blaze, buildpack, crud, es6, heroku, heroku-buildpack, material-ui, meteor, mongodb, nodejs, reactjs, yarn
- Language: JavaScript
- Homepage: https://rumedge-stats.herokuapp.com
- Size: 479 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HR Stats app
---
## Screenshot
![alt tag](https://raw.githubusercontent.com/ltfschoen/meteor-rumedge/master/public/screenshot.png)
---
## Initial Setup
* Switch to latest Node version using NVM
```
$ nvm use 7.7.4
Now using node v7.7.4 (npm v4.1.2)
```* Check that Meteor Node version and Node version are the same
```
$ node -v
v7.7.4meteor update --release 1.4.2
$ meteor node -v
v4.6.1
```* Update to Meteor patch version 1.4.2.7 from 1.4.2
```
which meteor node
nvm install 4.8.0# update to Meteor 1.4.2.7
meteor update --patchnode -v
v4.8.0meteor node -v
v4.7.3
```* Update NPM dependencies
```bash
meteor npm install
meteor npm update
```* Install and update Meteor
```bash
# docs meteor docs.meteor.com
# install meteor on Mac https://install.meteor.com/
curl https://install.meteor.com/ | sh# update meteor
meteor npm install --save react react-dom react-tap-event-plugin react-router material-ui react-chartjs-2
meteor update --all-packages
```* Update Brew and install Yarn
```bash
# install yarn https://yarnpkg.com/en/docs/install
brew update
brew install yarn
```* Modify files to be compatible
```bash
# change package.json
- react-dom ^15.4.2
- react-tap-event-plugin ^2.0.1# change `export default class App` to `export class App`
```* Install dependencies with Yarn
```bash
# install all project dependencies
yarn install
```# Setup MongoDB for dev env
```
brew install mongodb --with-openssl
mkdir data && mkdir data/db
$ which mongod
/usr/local/bin/mongod
```* Open new Bash Terminal tab and run
```
mongod --dbpath data/db
```* Run app web server locally in the original Bash Terminal tab
```
meteor
```* Go to localhost:3000
* Run MongoDB in separate terminal window whilst app web server running
```
meteor reset
meteor mongo
help
exit
```## Deploy
### Test Local Deployment
* run app locally prior to Heroku https://devcenter.heroku.com/articles/deploying-nodejs
```
rm -rf node_modules; npm install --production
heroku local --procfile Procfile
```# check Node version
node --version# update package.json with "engine" whose value matches Meteor Node version
```
heroku login
heroku apps:create rumedge-stats
# heroku apps:create rumedge-stats --stack cedar --region us --buildpack https://github.com/AdmitHub/meteor-buildpack-horse
# https://devcenter.heroku.com/articles/mongolab#getting-your-connection-uri
heroku addons:destroy mongolab
heroku addons:create mongolab:sandbox# consult the mLab Add-on Admin UI to check on its progress.
# Created mongolab-shaped-17356 as MONGODB_URI
# Use heroku addons:docs mongolab to view documentation# show MongoDB Credentials
heroku config:get MONGODB_URI# define MONGO_URL for meteor-buildpack-horse to work
heroku config:add MONGO_URL=# DO NOT USE heroku buildpacks:set https://github.com/jordansissel/heroku-buildpack-meteor.git
# Horse Buildpack https://github.com/AdmitHub/meteor-buildpack-horse
heroku buildpacks:set https://github.com/AdmitHub/meteor-buildpack-horse.git
# NOT REQUIRED heroku config:add BUILDPACK_PRELAUNCH_METEOR=1
heroku config:add BUILDPACK_VERBOSE=1heroku config:add ROOT_URL=https://rumedge-stats.herokuapp.com
git remote -v
# https://github.com/AdmitHub/meteor-buildpack-horse/issues/144
git commit --allow-empty -m "Rebuild, heroku"
git push heroku master
heroku logs --tail --app rumedge-stats
heroku run bash --app rumedge-stats
```