This repository is used to store code for tasks and projects form different courses and tutorials about node.js.
Async-await is a project that I used to better understand this functionality.
Chat app is a project using socket.io for creating a realtime chat web-app. You can create rooms and have private conversations. You can also send your location as a message.
To download dependencies: npm install
To run go to: /chat-app - node server/server.js
The app will run on localhost:3000
.
It is also deployed on heroku.
Setting up a project with mongodb. This project is a REST todo-api which can add, update, and delete todos. An authentication system is also implemented so to be able to perform these operations you have to create a user first.
To download dependencies: npm install
To run go to: /todo-api - node server.js
Using postman you can go to localhost:3000/todos
and make a POST
request to create a note.
Working with Mocha for testing functions.
To download dependencies: npm install
To run go to: /tests - npm start
Web server that is deployed on heroku. Only for testing purposes. The projects main purpose is to better understand templating and express.
To download dependencies: npm install
To run go to: /web-server - node server.js
The default server is running on localhost:3000
.
Weather application that uses Google's API for fetching the longitude and altitude based on user input.
To download dependencies: npm install
To run go to: /weather-app - node app.js [args]
The only [args]
that the program takes is location. For example node app.js -a "SOME ADDRESS"
(note: the address must be in quotes).
For more information run node app.js --help
The app uses Dark Sky API for weather information so in order to use it you must register for their api and createa file called key.js
inside /weather-app
and declare a const = "YOUR KEY"
.
Note taking application.
To download dependencies: npm install
To run go to: /notes-node - node app.js [args] [optional flags]
Where [args]
defines what action you want to do. You can choose between add, list, read, and remove. You can use [optional flags]
with add, read, and remove. Every note has a title and body. For example, to add a note node app.js add --title="My Title" --body="Important body"
. To remove and read a note you have to only specify the title. list
argument will list all notes.
For more information run node app.js --help
Simple hello world application.
To run go to: /hello-world - node app.js