GithubHelp home page GithubHelp logo

github-cards's Introduction

GitHub Cards

Your github profile is very important and we want every student to be able to display their github profiles and repos easily. As a part of this project, we will work on an open source library that allows anyone to embed their github information in websites like blog, personal site etc. We will also implement tracking system so that users can track user activity like views, link clicks etc.

Pre-requisites:

  • Create a Github account if you don’t have one.
  • If you don’t have Git installed in your computer, install Git using this guide. Git - Installing Git
  • This a template repository. So, you will fork this repository in your GitHub account before working on it. This will give you a complete ownership of your code. To fork this project, click on the Fork button on the top right corner.
  • Once you have the forked project, you will clone it to your computer to get started. To clone the project, click on the green “Clone or Download” button and follow the instructions.
  • Learn about GitHub and Git commands. We will use git throughout the program, so make sure you have basic understanding of GIT.
  • We will use Visual Studio Code as a text editor. If you have a different preference like Sublime Text, Atom etc., feel free to stick with it. Install Visual Studio Code
  • If you don’t have npm installed in your computer, install npm using this guide. Npm - get npm

React - Express basic setup

This repository has the basic bare bones code to run a React Frontend and Node/Express Backend and running them together. The project uses MongoDB as the database storage.

Hosting and connecting the MongoDB database

Since we are using MongodDB database, we will need to create a cluster. Go over this awesome blog post that clearly explains how to host a MongoDB cluster and set it up with NodeJS.

Download and install tools

  1. VS Code (Recommended but not required)

The APP

The app combines two separate applications. Client which serves the FrontEnd (using React), and the API (in Node/Express)

How to run both the servers together

  1. Clone the repository.
  2. Open your terminal and navigate to the root directory (react-node).
  3. Run npm run installation to install all dependencies
  4. Run npm run dev.

How to run the Node server seperately

  1. In your terminal, navigate to the api directory.
  2. Run npm install to install all dependencies.
  3. Run npm start to start the app.

How to run the Client seperately

  1. In a different terminal, navigate to the client directory.
  2. Run npm install to install all dependencies.
  3. Run npm start to start the app.

Make sure they are running

  1. With the two apps running, open your browser in http://localhost:3000/.
  2. If you see a webpage saying Welcome to React, it means the FrontEnd is working.
  3. If the same webpage has the phrase API is working properly, it means the API is working too!
  4. Enjoy coding!

github-cards's People

Contributors

shiwan2456 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.