GithubHelp home page GithubHelp logo

wflms20110333 / zbt-website Goto Github PK

View Code? Open in Web Editor NEW

This project forked from slava/zbt-website

0.0 0.0 0.0 29 MB

Home Page: http://zbt.mit.edu

License: MIT License

Shell 0.27% JavaScript 87.48% CSS 3.26% Less 8.99%

zbt-website's Introduction

MIT ZBT Website 2016

This is the source of the ZBT website hosted on MIT infrastructure at <zbt.mit.edu>.

The goal is to have a modern-looking, easy to deploy and develop, static website.

Design Decisions

Since MIT's hosting infrastructure available to the undergraduates runs very outdated versions of Rails, Django and PHP, the best decision was to go with a static website with all interactivity implemented in the client-side code.

This is how it came down to using GatsbyJS, a tool that generated static pages with ReactJS powered transitions and client-side interactivity.

Goals

  • Provide a welcoming information about ZBT Xi Chapter to the wider MIT community
  • Have an up to date information about Rush and current brothers
  • Make the website usable on mobile (read: responsive design)

Development

You would need node and npm. **Make sure Node version is v7! There are some compatibility issues at the moment. For example, you can run:

npm install -g n
$ n 7.0.0

Install gatsby globally:

npm install -g gatsby

Install dependencies:

npm install

Run locally:

npm run develop

Running in development mode will run a server on localhost:8000. CSS has hot-code-reloading. Hot module replacement also should work.

To lint:

npm run lint

Deployment

The site is deployed on MIT Scripts, under the locker called zbt.

Since it is a fraternity-owned locker, your MIT Kerberos account should be on the [email protected] mailing list in order to upload files there.

To deploy, just build files and put them into the Scripts root to be served as static files. **If you run into errors with os.tmpDir, go to https://stackoverflow.com/questions/40913034/os-tmpdir-is-deprecated-node-and-formidable

Run the ./deploy-to-prod bash script to save keystrokes and upload files over scp.


Web design and development by Slava Kim'19. Photography by John Chow'15.

zbt-website's People

Contributors

slava avatar akshajk avatar bestwillcui avatar dansun123 avatar raytran avatar archerw105 avatar aqding avatar daiyunli 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.