You are on page 1of 1

1.

Criar pasta do projeto


2. Na pasta do projeto: npm init -y
3. Instalar vscode
Installation#

1. Download Visual Studio Code for macOS.


2. Double-click on the downloaded archive to expand the contents.
3. Drag Visual Studio Code.app to the Applications folder, making it
available in the Launchpad.
4. Add VS Code to your Dock by right-clicking on the icon and
choosing Options, Keep in Dock.

Launching from the command line


You can also run VS Code from the terminal by typing 'code' after adding it to the path:

 Launch VS Code.
 Open the Command Palette (⇧⌘P) and type 'shell command' to find the Shell
Command: Install 'code' command in PATH command.

 Restart the terminal for the new $PATH value to take effect. You'll be able to type
'code .' in any folder to start editing files in that folder.

5. Instalar express: npm install express


6. Abrir pasta com VsCode: code
7. Instalar nodemon para não precisar resetar o server.js : npm install -D
nodemon (no terminal do vscode) – incluir em packages.json na área scripts o
Seguinte:
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "nodemon server.js"
Usar npm run dev, para rodar o script
8. Instalar docker
9. Instalar mongo: docker pull mongo
10. Criar container: docker run --name mongodb -p 27017:27017 -d mongo.
(verifique em localhost:27017 se extá tudo ok)
11. Instalar Robo 3T (para visualizar arquivos mongoDB)
12. Instalar mongoose: npm install mongoose
13. Instalar require-dir

You might also like