Minor Project for 6th Semester
If you have git cli installed, run:
git clone https://github.com/YashSakalley/workforce.git
If not installed, click on "Clone or Download" and select "Download ZIP".
Run the following command in cmd in the workforce folder:
npm install
Change the folder name "config - Copy" to "config"
Now open the config folder and change the values in "db_config.js" according to your mysql database.
Now change the values in "otp_config.js" according to your twillio account details.
After that, open "initDatabase.sql" and copy everything inside this file.
Now run the following in cmd:
mysql -u "username" -p
Press enter and type your mysql password
Now paste what you copied earlier in the mysql client terminal.
Database with tables users, reviews, requests, workers and temp_requests will now be created.
Open your workforce folder in cmd and type the following command:
node app.js
If you are recieving "ETIMEDOUT", type the above command again.
Now you will recieve a message:
Server up on port 5000
Connected to the database on app.js
Congratulations, the website is now up and running. You can view this site by going to "http://localhost:5000/" in your web browser.