Snappy is a chat application build with the power of MERN (MongoDB, Express, React, Node.js) Stack.
Both should be installed.
This repository provides example environment (.env.example) files which you can use. To use them you need to rename them from .env.example
to .env
cd public
mv .env.example .env
cd ..
cd server
mv .env.example .env
cd ..
Note: Make sure a MongoDB server is running and update
/server/.env
the MONGO_URL accordingly.
Now install the dependencies for backend and frontend.
cd server
npm i
cd ..
cd public
npm i
We are almost done, Now just start the development server.
For Frontend.
cd public
npm start
For Backend.
Open another terminal in folder, Also make sure mongodb is running in background.
cd server
npm start
Done! Now open localhost:3000 in your browser.