Added Batch file to open both client and server on clicking batch file!
- Able To Run Server
- Able To Login and Signup and even log-out
- Able To add a task and remove it
- Able To making tasks checked
Download and install NodeJS
from official website nodeJS.org
Download and install MongoDB
from official website mongoDB.com
At first you have to clone the project and open it in IDE
- Method one -
npm run start-both
(If any error, then use
chmod +x start_client.sh
chmod +x start_server.sh
chmod +x start_both.sh
sudo apt install dos2unix # to convert convert the line endings of the script to Unix format (LF) using the dos2unix utility
dos2unix start_client.sh
dos2unix start_server.sh
dos2unix start_both.sh
./start_both.sh # starting both server & client
If it gives mongoDB error, as MongoDB atlas is not configured for your EC2 VM network ip address, check your ec2 ip address using
ssh -i /path/to/your/key.pem ubuntu@your_ec2_public_ip
curl ifconfig.me
Create .env file inside /server module and give it
MONGODB_API_KEY=your_ec2_instance_link_without_ending_/_sign
EC2_API_KEY=your_ec2_instance_link_without_ending_/_sign
LOCAL_API=https://localhost
eg.
MONGODB_API_KEY=mongodb+srv://myaccounthere:mypasswordhere@[email protected]>
EC2_API_KEY=http://ec2-36-247-136-16.ap-south-1.compute.amazonaws.com
LOCAL_API=https://localhost
)
- Method 2 -
Open IDE's terminal and then write ~ cd server
and enter
After that write ~ npm i
and enter
type ~ npm start
and then enter
Now open another terminal and write ~ cd client
And then write ~ npm i
and ~ npm start
Congratulations ,now you can signup
and use the website
Dummy user => username - JayeshJadhav password - JayesJadha@123