-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
29ac0d4
commit c1876e4
Showing
1 changed file
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,49 @@ | ||
# webapp | ||
# webapp | ||
|
||
WebApp | ||
Steps | ||
Install Node.js | ||
Ensure that you have Node.js installed on your machine. If not, you can download it from Node.js official website. Verify the installation by running the following commands: | ||
|
||
node -v | ||
npm -v | ||
Clone the Repository | ||
Clone the repository to your local machine: | ||
|
||
cd webapp | ||
Install Dependencies | ||
This will install all the necessary dependencies and also the dev dependencies | ||
|
||
npm install | ||
Run Tests | ||
This command will run all the tests and make sure the API is working correctly | ||
|
||
npm run test | ||
Install Docker to run mysql | ||
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-centos-7 | ||
|
||
sudo yum check-update | ||
curl -fsSL https://get.docker.com/ | sh | ||
sudo systemctl start docker | ||
docker ps | ||
Start Mysql on Docker | ||
docker run -d \ | ||
--name mysql_cloud \ | ||
-e "MYSQL_ROOT_PASSWORD=root" \ | ||
-v mysql_data:/var/lib/mysql \ | ||
-p 3306:3306 \ | ||
mysql:latest | ||
|
||
Install NodeJS and npm | ||
[OPTIONAL] | ||
sudo dnf module list nodejs | ||
|
||
sudo dnf module enable nodejs:16 | ||
sudo dnf install nodejs | ||
npm install -g yarn | ||
node --version | ||
npm --version | ||
Install unzip and copy zip | ||
sudo yum install unzip | ||
|
||
scp webapp.zip root@${IP}:/root |