Web Programming Final Project
- Make sure npm is installed
- clone repository
- Run
npm installin terminal to download packages cdinto the server directory- Create a .env file and copy and paste this code into it:
PORT=8080 MONGODB_URI=mongodb+srv://convo_db_user:POkT9iC7EiEE1rcw@cluster0.bpzjy1i.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0 JWT_SECRET=Yk+KJtpuSU0CfyjPzrNW2cL9XQm/JZxDKQ38bBdDuhM= CORS_ORIGIN=http://localhost:5173 COOKIE_SECURE=false - Run
npm installin terminal to download server specific packages - Run
make devin the project root directory to locally host web app - Run
make stopto stop hosting the web app- Note: The two commands above are from the Makefile and are a short cut for running npm run dev twice in two different directories