iampranavdhar / Blog-and-Portfolio

My blog and portfolio website built using React, Django and GraphQL

Home Page:https://pranavdhar.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blog And Portfolio ✨

This repo is my Portfolio which is built using React, Django, and GraphQL.A Portfolio will provide a platform to showcase our blogs and the latest work that we had done

image

If you want to understand this repo better and use it follow the steps mentioned below

This repo has divided into two branches for making deployment in Heroku from Github

  1. Frontend
  2. Backend

The First step is to fork the repo and get it in your Github repositories and then clone the repo to your local environment.

And then create Heroku apps for deploying so that you can add your URLs to the code by following the steps mentioned

Frontend ⚛️

alt text

Setup

  1. First clone the Frontend branch from the repo

    git clone -b frontend --single-branch <remote-repo-url>

  2. Install all the npm packages

    npm install

  3. Run the code

    npm start

Changes 📝

Changes that need to be made for getting your data on the website are:

  1. Change the home.png and about.jpeg in the public/assets folder with the images you want to show in the landing page of the portfolio and change the names in the src of image tags in the Home.js and About.js if the naming is different

  2. Change the title of the page in the index.html in the public folder with your name

    From Components:

  3. Change the about data in the About.js

  4. Change the Social Media links in the Home.js and Footer.js

  5. For the stats of Github change the username in the URLs in Stats.js

  6. Change all the URLs with your respective ones in

    • BlogPage.js [Cover image]
    • Blogs.js [fetch URLs]
    • Projects.js [fetch URLs]
    • useFetch.js [fetch URLs]
  7. Then push it to the Github frontend branch of the forked repo

Backend

Setup

  1. As done in the frontend part first clone the backend branch of the repo

    git clone -b backend --single-branch <remote-repo-url>

  2. Create a virtual environment and Install the pip packages in the requiremets.txt

    pip install -r requirements.txt

    In case you are using version 3 use pip3

Changes 📝

  1. Add your frontend URL to CORS_ALLOWED_ORIGINS on the settings page

  2. And add your backend URL in the ALLOWED_HOSTS on the settings page

  3. Then push to the backend branch of the repo

Deploying to the Heroku 🚀

  1. Now finally add build-packs to the apps in Heroku and deploy the respective branches separately by connecting to the Github

    We can deploy it together as well but I have chosen to deploy separately.

Author ✍️

  1. img Pranavdhar

Note

If you found this useful, then please consider giving it a 🌟 on Github and sharing it with your friends.
Happy Coding 💻

About

My blog and portfolio website built using React, Django and GraphQL

https://pranavdhar.netlify.app/

License:MIT License


Languages

Language:JavaScript 56.9%Language:CSS 38.7%Language:HTML 4.4%