Learning Javascript from YouTube Channel: The Coding Train
Link of the playlist : https://www.youtube.com/playlist?list=PLRqwX-V7Uu6YxDKpFzf_2D84p0cyk4T7X
-
Data Selfie App A Web based application which takes the location, details (name, age) and picture of the user and stores in a database using the Javascript p5js library. The data is also retreivable at the user end who can view all the entries stored in the database.
PS: The server is enabled using node.js and is a prerequisite for running.
(Make sure you are logged in to Git using your Github username and email using Git bash or CMD)
-
Go to Command Prompt and clone the Repository using (not in double quotes)
git clone <"link of the repo copied from the website">
The repository is saved in the same directory as the present working directory in command prompt. -
Install node.js to setup a virtual server.
-
Open up VS Code (or install if you haven't yet). Has been fun to work with it, and I am really loving it, wish I had realised earlier!
-
Open VS Code: You can even do step 1 now. Open the cloned repository or switch your directory using CMD.
-
Type "
node index.js
" in Command Prompt to get the server up and running. A message "Listening at 3000" means that the server is set up successfully. -
Go to any browser, and type
localhost:3000
in the address bar. This loads index.html in the public folder -
Edit your code in VS Code: add/ edit stuff
-
Follow the steps to commit ✔️ :
- Stage your changes .
git add .
- Commit your changes (name your commit in double quotes).
git commit -m "Name of the commit"
- Push the committed changes into relevant branch
git push origin <branch_name>
- Stage your changes .