W3DEV Pvt Ltd. Javascript Development Internship Assignment
To run application follow these steps
Frontend - React
-
Make sure you must be installed NodeJS,Git and Git Bash if not download it here [Git] (https://git-scm.com/downloads) [Node] (https://nodejs.org/en), then Open Git bash terminal and choose any directory Local Disk C or D.
-
Then inside directory, run command
git clone https://github.com/anishVermaIsHere/todo-w3dev.git. -
If you cloned the repo, create
.envfile inside theclientfolder and create these variableVITE_BASE_URL='http://localhost:5000/api/v1'you can replace 5000 any other PORT NO. as per your choice. -
Now, you have to run command
npm installornpm iin the terminal. -
After installation of all dependencies, you have to run last command
npm run dev -
Now your React App will run successfully.
Backend - NodeJS + Express
Similary as above frontend, follow all steps as above except STEP 3
Addtional steps
-
After created the
.envfile inside theapifolder create these variablesSERVER_PORT=5000 SALT=10 DB_URI="************************************"this URI is confidential, so that you have to create your own URI insideDB_URI=<YOUR MONGODB URL> -
Now, you follow steps STEP 4 and 5 as above
Backend - Docker
-
Make sure you must be installed Docker, if not download it here (https://www.docker.com/products/docker-desktop/)
-
Open new terminal or command prompt, go to inside the directory
todolist/api/.. -
Run the command
docker compose upand then it will run your API container.
Screen Recorded Link (https://www.loom.com/share/38daec822cde4d44aa723cfd6a84200e?sid=5073dd55-ca77-461a-ae6c-cee428197364)
Screenshots
Assignment


