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.
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.
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=
To generate types for the GraphQL schema, run the following command:
npm run compile
From your terminal:
npm run dev
This starts your app in development mode, rebuilding assets on file changes.
-
Sign up and log in to Fly
flyctl auth signup
- Setup Fly. It might ask if you want to deploy, say no since you haven't built the app yet.
flyctl launch
- 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.