Skip to content

darenmalfait/nerdfish.be

Repository files navigation

nerdfish.be

Nerdfish website


Nerdfish is an Alias for my Freelance business.

This repository contains the code for nerdfish.be. The website is built using the app-directory approach for NextJS, tailwindcss for styling and tinacms as a CMS. It's structured as a mono-repo using turbo.

It uses the app-directory structure for NextJS.

Environment Variables

The following environment variables are required to run the website:

  • NEXT_PUBLIC_TINA_CLIENT_ID: This is retrieved from your project at app.tina.io.
  • TINA_TOKEN: This is retrieved from your project at app.tina.io.
  • NEXT_PUBLIC_TINA_BRANCH: This is set by default CI with Netlify/Vercel/Github, but can be overridden.
  • NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME: Found in cloudinary.
  • NEXT_PUBLIC_CLOUDINARY_API_KEY: Found in cloudinary.
  • CLOUDINARY_API_SECRET: Found in cloudinary.
  • NEXT_PUBLIC_RECAPTCHA_SITEKEY: Recaptcha public key.
  • RECAPTCHA_SECRETKEY: Recaptcha secret key.
  • RESEND_API_KEY: Found in resend.
  • NEXT_PUBLIC_ALGOLIA_APP_ID: Found in Algolia app settings.
  • NEXT_PUBLIC_ALGOLIA_SEARCH_API_KEY: Found in Algolia app settings.
  • ALGOLIA_ADMIN_KEY: Found in Algolia app settings.
  • NEXT_PUBLIC_ALGOLIA_INDEX_NAME: Found in Algolia app settings.

Install

The package manager used in this project is pnpm. To install the required packages, run the following command:

pnpm i

To run the project locally, use the following command:

This starts tinacms and the website on port 3000. The CMS is available at http://localhost:3000/admin.

pnpm dev

Path To Tina

If your GitHub repository uses a monorepo structure, the Path To Tina Config input can be used to specify the path to the tina directory in your repository. For example, if you have a project named my-site, and it is located in the projects directory of your repository, you would enter projects/my-site in this field and click Save Project to update the project.

In this case: it's needed to fill in the path in the cloud configuration to apps/web to be able to index the content.

Favicon

The website's favicon was generated with https://realfavicongenerator.net/.

Commit Messages

The commit messages for this project follow the semantic format. For more information on how to write the perfect commit message, please refer to this blog post.

License

This website is licensed under the MIT license. Please see the LICENSE file for more information.