Skip to content

ippontech/iroco2-frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

IroCO2 Frontend

This project is part of IroCO2. You are not in the principal repository. For any general information about the project, please refer to the principal repository.

This is the frontend of the IroCO2 application, developed using Nuxt 3 and Vue 3. It provides the user interface and client-side logic for the IroCO2 carbon calculator platform.

🚀 Getting Started

Prerequisites

  • Node.js >= 20.0.0 < 21.0.0
  • npm >= 9.0.0 < 11.0.0 (or Yarn / pnpm / Bun)

Installation

Clone the repository and install dependencies:

# with npm
npm install

# with yarn
yarn install

# with pnpm
pnpm install

# with bun
bun install

Run in development

Start the development server at http://localhost:3000:

# with npm
npm run dev

# with yarn
yarn dev

# with pnpm
pnpm run dev

# with bun
bun run dev

Build for production

# with npm
npm run build

# with yarn
yarn build

# with pnpm
pnpm run build

# with bun
bun run build

Preview the production build locally:

# with npm
npm run preview

# with yarn
yarn preview

# with pnpm
pnpm run preview

# with bun
bun run preview

📦 Project Structure

  • components/ — Vue components (UI, forms, charts, navigation, etc.)
  • pages/ — Application pages (e.g., calculator, catalog, admin, login, help, etc.)
  • service/ — Business logic and API service layers
  • public/ — Static assets (favicon, icons, etc.)
  • assets/ — Styles and images
  • layouts/ — Application layouts
  • middleware/ — Middleware logic
  • stores/ — Pinia stores (state management)
  • lib/, enum/, type/ — Utilities, enums, and types
  • nuxt.config.ts — Nuxt configuration
  • tailwind.config.js — Tailwind CSS configuration
  • package.json — Project dependencies and scripts

🚀 Deployment

The frontend is deployed on AWS Cloudfront. The cloudfront distribution is configured in the terraform repository.

To deploy the frontend, provide the following variables through .env file :

  • CLERK_PUBLISHABLE_KEY : See official Clerk documentation
  • IROCALC_API_URL : FQDN of the IroCO2 backend API

Run yarn generate to generate the static files.

Connect to your AWS environnement and run the following commands :

export S3_BUCKET_ID=`aws ssm get-parameter --name /IROCO2/PARAMETERS/FRONTEND/CLOUDFRONT_BUCKET_ID --query 'Parameter.Value' --output text --region eu-west-3 --with-decryption`

export CLOUDFRONT_DISTRIBUTION_ID=`aws ssm get-parameter --name /IROCO2/PARAMETERS/FRONTEND/CLOUDFRONT_DISTRIBUTION_ID --query 'Parameter.Value' --output text --region eu-west-3 --with-decryption`

aws s3 sync ${BUILD_FOLDER} s3://${S3_BUCKET_ID}/

aws cloudfront create-invalidation --distribution-id ${CLOUDFRONT_DISTRIBUTION_ID} --paths '/*'   

📝 License

Distributed under the Apache 2.0 License. See LICENSE for more information.


📄 Documentation

See docs/ for technical documentation. (If this folder is empty, refer to the principal repository.)

For ADRs and workflow documentation, see the principal repository and workflows.

🤝 Contributing

See CONTRIBUTING.md

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •