GithubHelp home page GithubHelp logo

quietevolver / bcat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from will-saunders/bcat

0.0 1.0 0.0 30.65 MB

Online assessment and planning tool for community broadband organizers.

Home Page: https://bcat-assessment.herokuapp.com/

JavaScript 37.54% CSS 55.87% HTML 6.58%

bcat's Introduction

Development Info

All of the code for the project is current in the survey-app folder. This project is built using KeystoneJS. More specifically it uses Node.js, MongoDB, Express, Pug, Stylus and Bootstrap.

Dependencies

Set up

  • Clone the repository

    git clone https://github.com/will-saunders/BCAT.git
    cd BCAT/survey-app
    npm install
    
  • Create a .env file with a cookie secret:

    echo "COOKIE_SECRET=<a_bunch_of_characters>" > .env
    

    For now, <a_bunch_of_characters> can be whatever you'd like.

  • In a separate terminal start mongodb: mongod

  • Run npm start

  • Check localhost:3000

  • Login to the admin page with username: [email protected] and password: pass

  • Debugging should work out of the box with VSCode

Structure

BCAT/survey-app
|-- models
|-- public
    |-- styles
        |-- site
            |-- _layout.styl
            |-- _variables.styl
|-- routes
    |-- index.js
    |-- middleware.js
    |-- views
|-- templates
    |-- views
  • models
  • public/styles/site
    • _layout.styl and _variables.styl are the stylus files to override bootstrap defaults.
    • site.css and site.styl are generated, so any changes you make to them will be overwritten
  • routes
    • this is the folder for express routing
    • new routes are added to routes/index.js
    • code for handling each new route should go under routes/views/<your_view>.js
    • to create a variable that's accessible by a pug template, save it as locals.varname, which will be varname in the pug template
  • templates
    • this is the folder for pug templates
    • code for new pages go under templates/views/<your_view>.pug

Resources

Keystone Demo
Keystone Demo Repo
Keystone DB Documentation
Throttling Network w/Chrome DevTools

bcat's People

Contributors

aliaanor avatar jlikesplants avatar kperry150 avatar mariannefeng avatar msarthak90 avatar sjgllghr avatar will-saunders avatar

Watchers

 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.