Skip to content

michaelliebs/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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published