Giter Site home page Giter Site logo

thewasif / tech-news Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 377 KB

Hacker News clone build with GraphQL (Apollo), MongoDB and ReactJS and deployed with Docker on Heroku

Home Page: https://tech-news-v1.netlify.app

JavaScript 86.29% Dockerfile 0.51% HTML 2.46% Shell 0.11% SCSS 10.64%
graphql apollo nodejs react mongodb docker docker-compose resource-list

tech-news's Introduction


Logo

Tech News

Full Stack GraphQL (Apollo) web app with MongoDB and ReactJS

Open App

About The Project

Tech News Home Page

This project is a Full Stack Application built with GraphQL with Apollo Server and Apollo Client. It uses MongoDB as database while hosting database on MongoDB Atlas. It uses React as UI Library. Application is containerized with Docker and these containers are deployed to Heroku

๐Ÿ‘‰๐Ÿฝ GraphQL API
๐Ÿ‘‰๐Ÿฝ Application

Local Installation

You can install this project locally by Docker Compose or by starting server and client separately.
First of all, clone the repo

git clone https://github.com/MuhammadWasif/tech-news.git

or with GitHub CLI

gh repo clone MuhammadWasif/tech-news

Docker Compose

Docker and Docker Compose must be installed on your computer

Go to root of project and execute

docker-compose up

It will take time for the first time but when containers are ready you can start development.

You can access servers at
React Client: http://localhost:3000/
GraphQL Server: http://localhost:5000/

(You can change environment variables in docker-compose.yml file)

Individual Setup

If you do not want to use docker-compose, follow these steps:

Running the Server

1: Go to /server and replace .env.example with .env.
2: Make sure to change MONGO_URI variable to your database srv string.
3: Run npm install to install the packages.
4: Run npm run dev and GraphQL server will start on http://localhost:5000/

(Make sure that MongoDB is running and your database is accessible through SRV String)

Running the Client

1: Goto /client directory.
2: Run npm install to install packages.
3: Run npm start and React server will on http://localhost:3000/

If you have any kind of problem, my Discord username is muhammadwasif#0612

tech-news's People

Contributors

thewasif avatar

Watchers

 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.