Skip to content

A FullStack app based on StackOverflow where users can ask/answer questions, comment, have profiles, and it is all connected to an Express server and Mongo database.

Notifications You must be signed in to change notification settings

dane-meister/Fake-Stack-Overflow

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instructions to setup and run project

Prerequisites

npm install the following:

  • npm install (base dependencies)
  • cors (globally)
  • axios (/client and /server (for npm test))
  • express (/server)
  • mongoose (/server)
  • nodemon (/server or globally using $ npm install -g nodemon)
  • bcryptjs (/server)
  • jsonwebtoken (/server)
  • cookie-parser (/server)
  • express-session (/server)

Start the MongoDB server

  • run $ mongod
  • run $ mongosh Database instance should now be running on mongodb://127.0.0.1:27017/fake_so

Create Admin User

  • in cd server $ node init.js [admin-username] [admin-password]

Start the server

  • cd server , $ npm install = nodemon server.js Server instance should now be running on https://localhost:8000

Set up Client

Run Tests

  • NOTE: Shut down Application before testing
  • cd server
  • $ npm test

About

A FullStack app based on StackOverflow where users can ask/answer questions, comment, have profiles, and it is all connected to an Express server and Mongo database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 84.3%
  • CSS 14.3%
  • HTML 1.4%