A simple site to view your ec2 instances in cloud, using aws-sdk API (work in progress)
This is a Next.js project bootstrapped with create-next-app
.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
This project uses next/font
to automatically optimize and load Inter, a custom Google Font.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
- You need node and npm installed
- I installed Docker container for the PG server testing
npm install aws-sdk
npm install
npm install ws
npm install --save-dev @types/ws
npm install pg
- What next? What could it do? :)
services:
db:
image: postgres
restart: always
environment:
POSTGRES_USER: pg
POSTGRES_PASSWORD: test1234
POSTGRES_DB: test
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 1s
timeout: 5s
retries: 10
ports:
- "5432:5432"
volumes:
- ./pg_data:/var/lib/postgresql/data
adminer:
image: adminer
restart: always
ports:
- 8080:8080
volumes:
pg_data_volume: