Giter Site home page Giter Site logo

pvteam's Introduction

##PVTEAM website

###Running the site A startup script, pvteam.sh, is provided that will handle the starting of Mongo and the running of the site in production mode. It assumes that 'forever' has been installed as a global NPM dependency (npm install -g forever)

By default the server will listen on port 3000. It is expected that a proxy (i.e Nginx) will handle the passing of connections from port 80.

###Installation If you're reading this then I assume you've already cloned the source project. If not, install git and then git clone from the github repository.

You will need Mongo & Node installed.

To download and install website dependencies, cd to the folder containing this readme, and then run 'npm install'. You are now good to go!

###Application details

The website is built using Keystone, a NodeJS site framework. The directory structure is the same as that used by Express (a NodeJS library used internally by Keystone)

Global app configuration is handled within keystone.js. See the Keystone documentation for details.

Page templates are stored under the /templates dir. They use Handlebars for the templating language.

URL routing, and the middleware controllers used, are found within the /routes dir. The Keystone data model has been setup such that there is a generic 'page' type - this can be used for adding textual content with a default template directly from the admin interface, without needing to edit the routes. Specialised pages, such as news or members pages, have their own templates and controllers.

The CSS is written using SASS, with the files found under /public/styles/site/ - do not edit the site.css or site.scss files directly, as these are auto-generated by Keystone when it starts.

Required images and client-side js files are found within /public. This is the only directly that will serve user requested files. Images that have been uploaded can be found within /public/images/uploads

Data models for the application are defined within the /models dir. These map onto the editable features within the Keystone admin, and are stored within the mongo database.

pvteam's People

Contributors

peterhughesdev avatar

Stargazers

 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.