This project is to deploy a full-stack application to cloud service(aws) which contain 3 main components (UI,API,Database).
Here is the demo -> Host-Fullstack-app
-
clone the repository.
git clone https://github.com/udacity/nd0067-c4-deployment-process-project-starter.git
-
Install Dependices
npm run frontend:install npm run backend:install
-
Database setup
-> Start postgres database on port 5432- you need to open sql shell (psql)
- if you have different password you can put in .env file instead of my password in variable called POSTGRES_PASSWORD
- write the following queries to create databases.
CREATE DATABASE aws_postgres;
-
Create .env file
POSTGRES_USERNAME="postgres" POSTGRES_PASSWORD="" POSTGRES_DB="postgres" POSTGRES_HOST="" AWS_REGION="" AWS_PROFILE= AWS_BUCKET="" URL="" JWT_SECRET= AWS_ACCESS_KEY_ID="" AWS_SECRET_ACCESS_KEY="" aws_profile="" PORT=3000
-
run this command to develop backend & server
cd udagram/udagram-api && npm run dev
-
run this command to develop frontend
cd ../udagram-frontend && npm run start