Public repo for National Institute of Technology Delhi's Tech Club, UpVision's website, built with React and Gatsby with 💜.
Designed and built as part of hacktoberfest 2020 Online event, and the tech club's SWAT initiative.
The mentors for the project are,
- Beeta Samad (@DumbSkull) - Leader, Project head.
- Rishikesh Anand (@Blakeinstein) - Repo manager, advisor.
- Abhishek Kumar Suman (@aksuman055) - Content manager.
- Prashant Chouhan (@Percy99) - Technical advisor.
- Ritik Gupta (@hey-ritikgupta) - Design Lead.
Contribution access has also been given to the web-dev team, (@Upvision/web-dev).
-
Setup Gatsby CLI
The repository is built with yarnpkg and we suggest you use the same. however we understand that not everyone likes using yarn and are free to use npm instead. Alternatively, if you dont feel like installing gatsby globally, Just clone the repo and run gatsby commands by using scripts or npx.
For yarn users,
yarn add global gatsby-cli
and for npm users,
npm install -g gatsby-cli
-
Configuration.
Since, data is pulled live from github, you need to setup an api key.
- get a personal access token from github.
- create a new file
.env
and save your token:
GHTOKEN=very-long-unreadable-string-goes-here
-
Start developing.
Ideally you should fork the repository first, click the fork button at the top right corner.
Clone the repository, and start developing. It is also suggested that feature implementations are to be implemented in a branch of your own repository.
Optionally, if you have Github-CLI setup, you can use the following command. This should create a fork of the repo on your account, and clone it locally.
gh repo fork Upvision/upvision.github.io --clone=true
-
Open the source code and start editing!
To serve the website locally,
use
yarn serve
ornpm run serve
Open the directory you cloned into and in your code editor of choice and edit
src/pages/index.js
. Save your changes and the browser will update in real time!
A quick look at the top-level files and directories you'll see in a Gatsby project.
.
├── node_modules
├── src
├── .gitignore
├── .prettierrc
├── gatsby-browser.js
├── gatsby-config.js
├── gatsby-node.js
├── gatsby-ssr.js
├── LICENSE
├── package-lock.json
├── package.json
└── README.md
-
/src
: This directory contains the actual source code for the project. -
LICENSE
: This website uses the MIT-license. -
package.json
: A manifest file for Node.js projects, which includes things like metadata. This manifest is how npm knows which packages to install for your project. -
README.md
: This text file that you are reading right now.
-
The gatsby documentation can be found on their website. This contains various code-samples that you can refer. In particular, Guides, API Reference, and Advanced Tutorials sections are worth checking out.
-
The gatsby tutorial ideal for people new to the framework can find an in-depth tutorial for creating a site with Gatsby.It starts with zero assumptions about your level of ability and walks through every step of the process.
-
The project uses github pages to host the webpage, and as such has a Continuos Deployment workflow, setup on the master branch, that re-deploys the website on the release branch. As such, pushing to master aside from Pull Requests is prohibited.
-
The project will also have Continous Integration workflow, to test incoming commits on Pull Requests, so that they build properly when merged.