Skip to content

Instantly share code, notes, and snippets.

@ElissandroMendes
Last active September 28, 2021 13:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ElissandroMendes/1a404e6ed3f5cad6bb7e0312c42812e3 to your computer and use it in GitHub Desktop.
Save ElissandroMendes/1a404e6ed3f5cad6bb7e0312c42812e3 to your computer and use it in GitHub Desktop.
Passos para preparar e rodar API na instância EC2 criada

Instalar Node

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
. ~/.nvm/nvm.sh
nvm node install
node -e "console.log('Running Node.js ' + process.version)"

Instalar Git

sudo yum install git

Clonar projeto para pasta app

git clone https://github.com/casamagalhaes/devacademy-api.git app

Prepara e rodar API

cd app
npm install

DATABASE=db.sqlite npm run db:create
DATABASE=db.sqlite npm run start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment