Skip to content

vidit21srivastava/Quora-clone

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quora-clone

It is a web-project designed to implement basic functionalities of quora-app. It aims at replicating only essential features such that it will be a question-answer platform where anyone can read and post or upvote the answer (By logging in). The front-end is designed using react-framework and backend is made using nodejs.

Setting up the project on local.

Ensure that nodejs is setup in your computer before running these steps. Download here

  1. git clone the repository.
  2. Split terminal into two windows and change to cd to client and server repository respectively.
  3. npm install dependency in both folders. By typing npm install.
  4. Run npm start at both terminal.

Front-end code Structure:

  • index.js is the starting point of client side. It contains just the boiler-plate code, the actual beginning is at App.js
  • All Components are in the Components folder
  • Navbar Component is at the beggining. The URL path decide the further rendered component.
  • The Connection with backend is implemented through the api folder
  • The project uses redux library, the action folder is thus used to dispatch actions and reducers folder is for reducer functions.

Back-end code Structure:

  • index.js is the start of the server-side.
  • The route folder contains the routes that back-end support.
  • The models folder contains the mongoDB model of questions/answers/users.
  • The Controller folder contains the back-end logic for interacting with database, receiving and sending response to incoming requests.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 79.4%
  • CSS 13.7%
  • HTML 6.9%