Giter Club home page Giter Club logo

treedb's Introduction

TreeDB

Basic Usage:

  1. Clone this repository to the directory of your choice:
git clone https://github.com/databridgevt/TreeDB.git
  1. Launch the app on server 80 of your local host:
node app.js

Network configuration:

  • Change Port Number - open app.js and change line 81 from:
    app.listen(80, function() {
    
    to:
    app.listen(NewPortNumber, function() {
    
  • Change MongoDB Instance - open app.js and change line 14 from:
    mongoose.connect("mongodb+srv://admin-conork:[email protected]/treeDB", {
    
    to:
    mongoose.connect(NewMongDBString, {
    

Contents:

  • app.js: Server-side portion of the application which launches the server and application, handles get/post requests, and interacts with the database.
  • views: Directory that contains the various ejs templates for the application. This directory is automatically searched for files to be rendered to the user. Therefore, when they are referenced in app.js the path appears as simply "filename" rather than "views/filename". Ejs templates are just html files that support ejs templating.
    • home.ejs: Code to render the home page.
    • publish.ejs: Code to render the page to upload new articles. This is where any additional attributes that articles should contain should be added.
    • search-results: Code to render the search results when users search for a new article. This is where any additional attributes of the articles that you want the normal users to see should be added.
    • partials: Directory that contains the header and footer ejs files.
  • public: Directory the application uses as the root directory for all files except those to be rendered to the clients as views. Therefore, when they are referenced in app.js the path appears as simply "filename" rather than "public/filename". All CSS, JavaScript, images, etc. are located in this file.
    • css: Directory that contains all the css scripts named for the view that uses them.
    • images: Directory that contains all the images for the application.
  • package.json:* Json object containing the names of all the packages needed for application.
  • node_modules:* Directory containing all the downloaded modules referenced in package.json.

treedb's People

Contributors

conork16 avatar conor1624 avatar curt-iss avatar dependabot[bot] avatar

Watchers

James Cloos 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.