This repository contains the implementation of project assigned as Full Stack Developer Assignment from Reunion. Project is made using React + TailwindCss + Flowbite + DaisyUI at frontend and Node js Express backend server to control all endpoints with MongoDB used as database to store the data related to users and their properties.
Website - https://reunion-akshat-assignment.netlify.app.
Backend Server Endpoint - https://reunion-backend-zsiu.onrender.com.
Postman Workspace to describe APIs - https://elements.getpostman.com/redirect?entityId=19209285-75e54cf3-35c9-4209-a0cd-31d93b82f02e&entityType=collection
Project is divided into 2 directories - server
and web
. We have to spin up both server and web simultaneously to fetch the data from database and show them on website. Here are the following steps:-
-
Navigate to
server
directory and install the NPM dependencies. Use following commands:cd server/ npm install
-
Make a
.env
file for environment variables inside the folder as:JWT_SECRET= MONGO_URL=
-
Run the backend server using the command:
node ./server.js
-
Now, navigate to
web
folder and install the NPM dependencies. Use following commands:cd web/ npm install
-
Make a
.env
file for environment variables inside the folder as:VITE_BACKEND_URL='http://localhost:5000'
-
Run the frontend server using the command:
npm run dev
-
Make an optimized build using following command:
npm run build