Coder Social home page Coder Social logo

suumaya / stackoverflow-clone-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mayank0255/stackoverflow-clone-frontend

0.0 0.0 1.0 12.11 MB

Clone project of a famous Q/A website for developers which is stackoverflow built using MySQL-Express-React-Node :globe_with_meridians:

License: MIT License

JavaScript 74.10% HTML 1.12% CSS 0.17% Shell 0.12% SCSS 24.49%

stackoverflow-clone-1's Introduction

Stackoverflow-Clone

Version NPM NODE MYSQL License

Demo Video

As the name suggests, this project is a clone of a famous Q/A website for professional and enthusiast programmers built solely by me using a completely different stack.

๐Ÿ†• New Update: newly added features are mentioned in issue(#15)

My Tech Stack (MERN)

Front-end

  • Front-end Framework: React.js (with Redux)
  • Styling: SASS and BOOTSTRAP

Back-end

  • For handling server requests: Node.js with Express.js Framework
  • As Database: MySQL
  • API tested using: POSTMAN

Original Tech Stack

  • For handling server requests: C#
  • As Database: Microsoft SQL Server
  • .NET as well

Contributing

  • Go to Contributing.md

Guidelines to setup

  1. Create a .env file and the format should be as given in .env.example.
  2. Run these commands then -
    npm run installDep (To install all the dependencies)
    
    npm run auditDep (Run this to audit fix all the vulnerabilities)
    
  3. Run databaseConfig.sql file in the mysql client
    source <file path>/data/databaseConfig.sql
    
  4. (Optional) Run seed.sql file in the mysql client for seed data
    source <file path>/data/seed.sql
    
    Note: Change the database name in databaseConfig.sql & seed.sql under USE command
  5. Start the servers
    Option 1 (for running both the servers simultaneously):
    
    npm run dev
    
    Option 2 (for running both the servers individually):
    
    npm run server (for backend server only)
    
    npm run client (for frontend server only)
    

NOTE: Might take sometime to start as there will be 2 servers running.

API Endpoints

Base Url - http://localhost:5000/api

Users

  • GET /auth
  • POST /auth
  • POST /users/:id
  • GET /users
  • GET /users/:id

Posts

  • GET /posts
  • GET /posts/top
  • GET /posts/tag/:tagname
  • GET /posts/:id
  • POST /posts/
  • DELETE /posts/:id

Answers

  • GET /posts/answers/:id
  • POST /posts/answers/:id
  • DELETE /posts/answers/:id

Comments

  • GET /posts/comments/:id
  • POST /posts/comments/:id
  • DELETE /posts/comments/:id

Tags

  • GET /tags
  • GET /tags/:tag_name

Future Scope

  • Setup Sequelize with MySQL in the API.
  • Deploy the database to cloud, API, and client-side.

DEMO

Video Last Updated on 22nd March, 2020

IMAGES

stackoverflow-clone-1's People

Contributors

mayank0255 avatar dependabot[bot] avatar avinashupadhya99 avatar ddsuhaimi avatar imgbotapp avatar gooddaytoday avatar

Forkers

priemum

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.