GithubHelp home page GithubHelp logo

ananyak100-dev / cssgwebsite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cs4good/cssgwebsite

0.0 0.0 0.0 156.05 MB

Website for CS+Social Good

CSS 4.99% JavaScript 1.52% HTML 89.08% SCSS 4.41%

cssgwebsite's Introduction

CS+Social Good Website

This is the repository for CS+Social Good's website. Based on the uiCookies theme "Landing."

Local Server

To get started, run "npm install" from the root directory. "npm run start" will launch the website from a local server.

NOTE: the build will probably fail because there is supposed to be a file called src/keys.js or .env with the keys needed to launch the website.

For running the website from a local server there are two ways to configure the keys. You can edit the code at the imports in src/index.js to use either one of these two ways:

  1. Using a src/keys.js file with following values:
const CLIENT_ID = "xxxx";
const CAL_ID = "xxxx";
const API_KEY = "xxxx";
const SCOPES = "xxxx";

export {CLIENT_ID, CAL_ID, API_KEY, SCOPES};
  1. Using a .env file in the root directory CSSGWebsite with the following values:
CLIENT_ID = "xxxx"
CAL_ID = "xxxx"
API_KEY = "xxxx"
SCOPES = "xxxx"

Number 2 is recommended as for deployment we will have to use automatic deployment from now on.

These files contain the API keys that allow us to fetch information about new events from the CS+Social Good Google Calendar. Contact [email protected] if you have questions and [email protected] for the key values.

Manual Deploy

When you are done editing the website code run npx webpack --config webpack.config.js to package the website into dist/. To upload the changes to the actual website, only upload the dist/ directory. The dist folder is the optimized version of the website that is created by webpack for production.

Automatic Deploy (New)

Netfliy has removed(?) the ability to do manual deploys for custom sites, so we have setup integration with GitHub. Commits to master are deployed automatically. You will have to ensure your src/index.js is configued such that it imports the API key values from process.env (environment variables). These environment variables are set under Deploy Settings -> Build & deploy -> Enivornment on Netlify.

cssgwebsite's People

Contributors

sasankhm avatar ananyak100-dev avatar jrcabansag 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.