Skip to content

Commit

Permalink
Deploy.sh for client
Browse files Browse the repository at this point in the history
  • Loading branch information
sheninthjr committed Nov 5, 2023
1 parent 167ca34 commit f09cb09
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 31 deletions.
7 changes: 7 additions & 0 deletions apps/client/src/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export PATH=$PATH:/home/ubuntu/.nvm/versions/node/v20.5.1/bin

cd /home/ubuntu/Automatic-Question-Generator
git pull origin master
yarn build
pm2 stop react
pm2 start npm --name "react" -- run "start:react"
55 changes: 28 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
{
"private": true,
"scripts": {
"build": "turbo run build",
"dev": "turbo run dev",
"lint": "turbo run lint",
"start:express": "cd packages/prisma && yarn prisma migrate dev && yarn yarn prisma generate && sudo docker-compose up -d && node dist/index.js",
"format": "prettier --write \"**/*.{ts,tsx,md}\""
},
"devDependencies": {
"eslint": "^8.48.0",
"prettier": "^3.0.3",
"tsconfig": "*",
"turbo": "latest"
},
"name": "QG",
"packageManager": "[email protected]",
"workspaces": [
"apps/*",
"packages/*"
],
"dependencies": {
"@types/cors": "^2.8.15",
"@types/express": "^4.17.20",
"cors": "^2.8.5",
"express": "^4.18.2"
}
}
"private": true,
"scripts": {
"build": "turbo run build",
"dev": "turbo run dev",
"lint": "turbo run lint",
"start:react": "cd apps/client-react/dist && serve -p 3001",
"start:express": "cd packages/prisma && sudo docker-compose up -d && yarn prisma migrate dev && yarn prisma generate && node dist/index.js",
"format": "prettier --write \"**/*.{ts,tsx,md}\""
},
"devDependencies": {
"eslint": "^8.48.0",
"prettier": "^3.0.3",
"tsconfig": "*",
"turbo": "latest"
},
"name": "QG",
"packageManager": "[email protected]",
"workspaces": [
"apps/*",
"packages/*"
],
"dependencies": {
"@types/cors": "^2.8.15",
"@types/express": "^4.17.20",
"cors": "^2.8.5",
"express": "^4.18.2"
}
}
1 change: 1 addition & 0 deletions packages/prisma/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export PATH=$PATH:/home/ubuntu/.nvm/versions/node/v20.5.1/bin

cd /home/ubuntu/Automatic-Question-Generator
git pull origin master
yarn install
yarn build
pm2 stop express
pm2 start npm --name "express" -- run "start:express"
2 changes: 1 addition & 1 deletion packages/prisma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"prisma:push": "prisma db push --skip-generate",
"prisma:seed": "prisma db seed",
"prisma:deploy": "prisma migrate deploy",
"build": "esbuild ./src/index.js --bundle --platform=node --outfile=dist/index.js",
"build": "esbuild ./server/index.js --bundle --platform=node --outfile=dist/index.js",
"dev": "tsc -b && node dist/index.js",
"all":"yarn prisma migrate dev && yarn prisma generate && sudo docker-compose up -d && tsc -b && node dist/index.js",
"start": "node dist/index.js",
Expand Down
8 changes: 5 additions & 3 deletions packages/ui/src/components/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ export function LandingPage() {
return (
<div className="mt-40 text-white relative z-10 flex">
<div className="w-2/3 p-4">
<div className="flex flex-col space-y-4">
<div className="flex flex-col space-y-10">
<div className="text-5xl italic">
<h1>Automatic Question Paper Generator</h1>
</div>
<div className="text-xl italic space-y-4">
<p>Upload the Question</p>
<p>Whenever needed, it will be automatically generated</p>
<p>This project is a sophisticated and practical solution designed to streamline and simplify</p>
<p>the process of creating customized question papers for educational institutions.</p>
<p>This project aims to provide a user-friendly platform for generating diverse</p>
<p>and tailored sets of questions efficiently.</p>
</div>
</div>
</div>
Expand Down

0 comments on commit f09cb09

Please sign in to comment.