No description or website provided.
JavaScript HTML CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
node_modules
site
.gitignore
README.md
app.js
index.js
package.json
routes.js
webpack.config.js

README.md

flatpage generator

Steps to install dev environment:

  1. brew install node
  2. brew install npm
  3. brew install mongodb
  4. npm install -g nodemon

Otherwise:

Commands

  • make a new db 'junk' folder called junk in the flatpage_generator directory [never check this file into the git repo]
  • mongod --dbpath <path to junk>/junk
  • nodemon or npm start - Starts app
  • [If working with react.js] npm run webpack - Listens to whatever webpack.config.js says and compiles on change

Notes

MongoDB Commands

  • To start db command shell: mongo
  • use flatpage
  • To show all currently existing tables: show tables
  • To show all of a table's contents: db.<table_name>.find()
  • To remove all database content: db.dropDatabase()
  • To leave the db shell: exit