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.
- 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
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.
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.
- VS Code (Recommended but not required)
The app combines two separate applications. Client which serves the FrontEnd (using React), and the API (in Node/Express)
- Clone the repository.
- Open your terminal and navigate to the root directory (react-node).
- Run
npm run installation
to install all dependencies - Run
npm run dev
.
- In your terminal, navigate to the api directory.
- Run
npm install
to install all dependencies. - Run
npm start
to start the app.
- In a different terminal, navigate to the client directory.
- Run
npm install
to install all dependencies. - Run
npm start
to start the app.
- With the two apps running, open your browser in http://localhost:3000/.
- If you see a webpage saying Welcome to React, it means the FrontEnd is working.
- If the same webpage has the phrase API is working properly, it means the API is working too!
- Enjoy coding!