Budgeting is a pain. I'm here to make things a little less miserable. Together, we can do anything.
Midas is an app built on node.js
and express
, powered by mongodb
. Node runs a server locally and remotely that allows us to do appy things like query data, edit it, submit it, sync it, etc. Mongo is our database solution. Until full integration with a fintech API is complete, we'll be serving mock data from mongodb
.
We're also using bower
to manage some front end libraries and grunt
to compile stylus
and concatonate Javascript.
To run this app locally, you'll need to install node
, npm
, and mongodb
on your machine.
Once that's done, repeat these steps each time you begin working.
- Open the command line.
- Navigate to code/midas (or whever it's at) using
cd
. - Pull
master
- Run
npm install
(this will intall a bunch of dependencies or check if you need any new ones) - Run
bower install
(this will install some other dependencies) - Finally, run
npm run dev
which will spin up your localnode
server at http://localhost:9000/.
Once it's running, much like grunt
, you'll see a runtime log of what's going on.
Open a new tab in the command line to being working then run grunt
.
To run git
tasks, open another tab in the command line. Expect to have three tabs at all times.
- Look at the issue you're working on
- Make and checkout a local branch for that issue.
git checkout -b branchname
. See naming guidelines below. - Code away! Commit often.
- Don't push until the issue is complete or code is ready for review
- When it's complete, add files, commit, push your branch.
- Open github, make a Pull Request for that branch. Specify a merge to master, and a reviewer when PR is approved.
If you come back to the work later for any reason, do not reuse that same branch. Once the PR is submitted, consider it gone forever.
- Once PR is approved. Checkout master and pull the latest
git pull origin master
nameofworkitem_yourinitials_issuenumber
Example: globalnav_jb_5
- Open System Preferences > Network.
- Select the active (green) network. Copy your IP address (000.00.000.00)
- Make sure your computer and device are on the same network.
- Navigate to http://000.00.000:9000/ on your device