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.
Ensure that nodejs is setup in your computer before running these steps. Download here
- git clone the repository.
- Split terminal into two windows and change to cd to
client
andserver
repository respectively. - npm install dependency in both folders. By typing
npm install
. - Run
npm start
at both terminal.
index.js
is the starting point of client side. It contains just the boiler-plate code, the actual beginning is atApp.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.
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.