Carbonable / carbonable-ccrp-app

Carbonable CCRP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Carbon Contribution Portfolio Manager (CCPM)

The Carbon Contribution Portfolio Manager (CCPM) is a web application that helps companies track their carbon emissions, set targets for reducing emissions, and manage carbon investments. This README.md provides an overview of the project, its technologies, and how to set it up.

Technologies Used

Remix.run: A modern web framework for building fast and dynamic web applications. Apollo Client: A powerful GraphQL client for making API requests. GraphQL: A query language for your API. graphql-codegen: A tool for generating strongly typed code from GraphQL schema and operations. emailjs: A service for sending emails.

Environment Variables

To get the CCPM project up and running, you will need to set up the following environment variables in your .env file:

DATABASE_URL=
SESSION_EXPIRATION_IN_SECONDS=
SESSIONS_SECRETS=
HASH_SECRET=
MAILJS_PUBLIC_KEY=
MAILJS_PRIVATE_KEY=
MAILJS_SERVICE_ID=
MAILJS_TEMPLATE_ID=

GRAPHQL_ENDPOINT=
ENABLE_EMAIL_VERIFICATION=

Generating Types

To generate types for the GraphQL schema, run the following command:

npm run compile

Development

From your terminal:

npm run dev

This starts your app in development mode, rebuilding assets on file changes.

Deployment

  1. Install flyctl

  2. Sign up and log in to Fly

flyctl auth signup
  1. Setup Fly. It might ask if you want to deploy, say no since you haven't built the app yet.
flyctl launch
  1. If you've followed the setup instructions already, all you need to do is run this:
fly deploy

You can run flyctl info to get the url and ip address of your server.

Check out the fly docs for more information.

About

Carbonable CCRP

License:Apache License 2.0


Languages

Language:TypeScript 84.7%Language:CSS 13.5%Language:JavaScript 1.3%Language:Dockerfile 0.4%