Skip to content

Commit

Permalink
feat: update README.md and add analytics endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
EshaanAgg committed Dec 10, 2023
1 parent 43b1499 commit c8d5f65
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# LFX Mentorship Metrics

This is the frontend repository for the LFX Mentorship Metrics project. The whole project is powered by `Astro` and `React`.
You can find the deployed site at [`https://lfx.netlify.app`](https://lfx.netlify.app)!

## Setting Up the Development Environment

1. You can either setup the backend yourself from [this repository](https://github.com/EshaanAgg/LFX-Backend) or you can use [Docker Compose](https://docs.docker.com/compose/install/) to setup the same with `docker compose up`.
1. You can either setup the backend yourself from [this repository](https://github.com/EshaanAgg/LFXMM-Backend) or you can use [Docker Compose](https://docs.docker.com/compose/install/) to setup the same with `docker compose up`.
2. Create a copy of the [sample .env file](./.env.sample) and rename the same to `.env`.
3. Install the dependencies of the project with `npm i`.
4. Run the development server with `npm run dev`.
Expand Down
13 changes: 13 additions & 0 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@ const { title } = Astro.props;

<title>{title}</title>
</head>
<!-- Google Tag script to drive analytics about the site -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-P16F97X138"
></script>
<script>
// @ts-nocheck
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-P16F97X138");
</script>

<body class="bg-dark-blue">
<Header />
<main>
Expand Down

0 comments on commit c8d5f65

Please sign in to comment.