Documentation
This commit is contained in:
62
README.md
62
README.md
@@ -1,36 +1,40 @@
|
|||||||
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
|
# Portfolio Website v2
|
||||||
|
|
||||||
## Getting Started
|
## Setup
|
||||||
|
|
||||||
First, run the development server:
|
### Domain Records
|
||||||
|
|
||||||
```bash
|
- Create one A record
|
||||||
npm run dev
|
|
||||||
# or
|
### Reverse Proxy
|
||||||
yarn dev
|
|
||||||
# or
|
- It doesn't matter what reverse proxy you use (Nginx, Apache, Traefik, Caddy, etc)
|
||||||
pnpm dev
|
- Point the record to the web port (default: 3000)
|
||||||
# or
|
|
||||||
bun dev
|
### [Docker Compose](./docker-compose.yml)
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
services:
|
||||||
|
portfolio:
|
||||||
|
container_name: portfolio
|
||||||
|
image: git.altaiar.dev/ahmed/portfolio-2:latest
|
||||||
|
network_mode: bridge
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- config:/app/public/config
|
||||||
|
- images:/app/public/images
|
||||||
|
ports:
|
||||||
|
- 3000:3000
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
config: # Place config.json and resume.pdf here
|
||||||
|
images: # Place images here
|
||||||
```
|
```
|
||||||
|
|
||||||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
(Optional) Replace volumes with bind mounts according to your setup
|
||||||
|
|
||||||
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
|
## Configuration
|
||||||
|
|
||||||
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
|
- The only required field is `name`, a two string array for first and last
|
||||||
|
- See [instrumentation.ts](./src/instrumentation.ts#L18-L89) or [config.d.ts](./src/types/config.d.ts) for possible values
|
||||||
## Learn More
|
- Validation is performed on container start, and will exit if anything is invalid
|
||||||
|
|
||||||
To learn more about Next.js, take a look at the following resources:
|
|
||||||
|
|
||||||
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
|
|
||||||
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
|
|
||||||
|
|
||||||
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
|
|
||||||
|
|
||||||
## Deploy on Vercel
|
|
||||||
|
|
||||||
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
|
|
||||||
|
|
||||||
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
|
|
||||||
|
|||||||
15
docker-compose.yml
Normal file
15
docker-compose.yml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
services:
|
||||||
|
portfolio:
|
||||||
|
container_name: portfolio
|
||||||
|
image: git.altaiar.dev/ahmed/portfolio-2:latest
|
||||||
|
network_mode: bridge
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- config:/app/public/config
|
||||||
|
- images:/app/public/images
|
||||||
|
ports:
|
||||||
|
- 3000:3000
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
config: # Place config.json and resume.pdf here
|
||||||
|
images: # Place images here
|
||||||
Reference in New Issue
Block a user