Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jonaxplanta/lp4

Repository with codes and programs for Programming Language 4.
https://github.com/jonaxplanta/lp4

express http-server javascript learning nodejs nodemon router school-project server

Last synced: about 1 month ago
JSON representation

Repository with codes and programs for Programming Language 4.

Awesome Lists containing this project

README

        

## IFMS

#### Technical Course in Computer Science - 6th Period - Morning Class

#### Teacher: Vinícius Maeda - Student: João Flores

#### Anotations, Codes and Programs for Programming Language 4 discipline

---

### Basics commands in Terminal

List the content of a diretory (file)

```
dir
```

Create a new diretory

```
mkdir
```

Remove an existing diretory

```
rmdir
```

Acess a file

```
cd
```

Cleans terminal

```
cls
```

Exit the file, returning one level

```
cd ..
```

Exit the file, returning to C: file

```
cd /
```

---

### Commands to create a Github repository using Terminal

Initiate the versioning

```
git init
```

Verify the project situation

```
git status
```

Add all untracked files

```
git add .
```

Add README markdown file

```
git add README.md
```

Execute a commit (update) with message

```
git commit -m "message"
```

Link the project to the main branch

```
git branch -M main
```

Execute a remote link to a GitHub repository

```
git remote add origin
```

Push all files to the main branch in repository

```
git push -u origin main
```

---

### Commands to update files in a Github repository

Add all files to upload to Github resository

```
git add .
```

Create a message to describe changes

```
git commit -m "message-to-add"
```

Push all files to Github repository

```
git push -u
```

Verifying if everything is in order

```
git status
```

---

### Commands to initiate a project using NodeJS

Initiate a project by providing data manually

```
npm init
```

Initiate a project using default data

```
npm init -y
```

### Commands to install Node dependences

Express

```
npm install express
```

Nodemon

```
npm install -g nodemon
```

Nodemon Dev

```
npm install --save-dev
```

Body Parser
```
npm install body-parser
```

### Auto reset server

#### Using Nodemon

Change the package.json file

```
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "nodemon "
},
```

Execute the following command

```
npm run dev
```

#### Using --watch

Execute the following command

```
node --watch
```