Skip to content

franciscosuca/onlineCv

Repository files navigation

Portfolio Starter

This is my start### Build the Docker image

docker build -t online-cv .

Build Multi-platform Docker image (AMD64 + ARM64)

For compatibility with both Intel/AMD and Apple Silicon (M1/M2) processors:

# Create a new builder instance (one-time setup)
docker buildx create --name multiplatform --use

# Build for multiple platforms
docker buildx build --platform linux/amd64,linux/arm64 -t online-cv:latest .
```rtfolio that I worked on based on the template from [Vercel](https://portfolio-blog-starter.vercel.app).

## Documentation

- [Content Management](./Docs/CONTENT_MANAGEMENT.md)

## How to Use

Clone this repository and then run:
```bash
npm install --legacy-peer-deps

Afterwards

npm run dev

Test build before triggering Github actions

npm run build

Run with Docker

To run the application using Docker:

Build the Docker image

docker build -t onlinecv .

Run the Docker container

docker run -p 80:80 
  -e COSMOS_ENDPOINT=https://your-cosmos-account.documents.azure.com:443/ 
  -e COSMOS_KEY=your_cosmos_key_here 
  -e COSMOS_DATABASE=your_db_here 
  -e COSMOS_CONTAINER=your_container_here 
  onlinecv

Important: Do not use quotes around the environment variable values when using -e flag.

Environment Variables:

  • COSMOS_ENDPOINT: Your Azure Cosmos DB endpoint URL (without quotes)
  • COSMOS_KEY: Your Azure Cosmos DB access key (without quotes)
  • COSMOS_DATABASE: Database name (defaults to "onlineCv")
  • COSMOS_CONTAINER: Container name (defaults to "experience")
  • NODE_ENV: Set to "production" for production builds

Alternative with .env file:

Create a .env file with these variables (without quotes):

COSMOS_ENDPOINT=https://your-cosmos-account.documents.azure.com:443/
COSMOS_KEY=your_cosmos_key_here
COSMOS_DATABASE=onlineCv
COSMOS_CONTAINER=experience
NODE_ENV=production

Then run:

docker run -p 80:80 --env-file .env onlinecv

The application will be available at http://localhost:80

Deploy to Azure Container Registry

To deploy your Docker image to Azure Container Registry for use with Azure services:

Login to Azure Container Registry

az acr login --name <your-registry-name>

Tag your image for Azure Container Registry

docker tag <local-container-name> <your-registry-name>.azurecr.io<remote-container-name>:latest

Push the image to Azure Container Registry

docker push <your-registry-name>.azurecr.io<remote-container-name>:latest

Contact

Please initiate an issue to report any problems with this project.

About

Website with information about my professional career as software engineer.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •