Giter Club home page Giter Club logo

babwebsite's Introduction

Directions and how things work:

Step 1: in command line -> sudo npm install (this will create the node_modules folder)

Step 2: You'll need to install MongoDB on your mac. There is an installer. Should be easy.

Step 3: After installing, run in command line -> sudo mongod -> Keep this terminal open as that initiates the database.

Step 4: Create config.json with MONGO_DB, NODE_ENV, PORT Example:

{ "MONGO_DB" : "mongodb://localhost/test", "NODE_ENV" : "development", "PORT" : "3000"

}

Layout of project:

  1. ReactViews act as client rendering. Create new files in src. jsx src build --watch to link into build.

  2. Models include all mongoose models that will be used in index.js

  3. node index.js to run server. will be in localhost:3000

  4. templates are used server side to render views. The specific one I'm using is called handlebars (.hbs) (instead of html)

  5. public folder includes libs, imgs, stylesheets.

To style project:

  1. First style individual components in client/src.
  2. Create a site wide styling if needed in public/styles. -> you can link this style to the whole website by going into templates/layouts/main.hbs and adding the style link there

babwebsite's People

Contributors

willgu29 avatar fernpach avatar

Watchers

James Cloos avatar Chris Buonocore avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.