Skip to content

Instantly share code, notes, and snippets.

@Zerquix18
Created October 28, 2020 04:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zerquix18/d679bce52654385d7ef2bb4b42185961 to your computer and use it in GitHub Desktop.
Save Zerquix18/d679bce52654385d7ef2bb4b42185961 to your computer and use it in GitHub Desktop.
trabajo final proyecto II
#!/bin/bash
apt-get update -y
apt install git npm nginx mysql-server -y
npm install -g forever
mysql -u root -e "CREATE USER 'unicaribe'@'localhost' IDENTIFIED BY 'lajevatuya'"
mysql -u root -e "GRANT ALL PRIVILEGES ON * . * TO 'unicaribe'@'localhost';"
mysql -u root -e 'FLUSH PRIVILEGES'
mysql -u unicaribe -p lajevatuya -e 'CREATE DATABASE StudentsDb'
git clone https://github.com/esmarlint/StudentApi
cd StudentApi
npm install
npx sequelize-cli db:migrate
forever start server.js
cd ~
git clone https://github.com/lucianacrx/students-uc
cd students-uc
npm install
npm run build
mv build/* /var/www/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment