To start development, it is suggested that you use a virtual environment to manage the packages needed for the software development. You will need to install Node.js, which comes with npm, but I would recommend using a version manager like pnpm.
To create a virtual environment using micromamba and ensure faster installs, you need to have both nodejs and pnpm. You can set this up with the following command:
micromamba create --prefix ./menv nodejs pnpm
micromamba activate --prefix ./menv
pnpm install
Now your development environment should be good to go!
Add a .env.local
file to the root of the project with the following contents:
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=
NEXT_PUBLIC_HCAPTCHA_SITE_KEY=
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=
NEXT_PUBLIC_FASTAPI_URL=
STRIPE_SECRET_KEY=
STRIPE_PAYMENT_DESCRIPTION=
STRIPE_WEBHOOK_SECRET=
MagicUI is a UI component library that is built on top of Radix UI. It is a highly customizable library that allows you to build your own components.
I am not using the CLI tool that comes with MagicUI. Instead I am using the manual method so that I can specify where I want the components to live. That way I can place the components in the /features
directory, and place the components in the directory where they are used.
The /features
directory is directed at organizing custom features and components from the user. The /components
directory is for components that are used across the entire application and are installed by component libraries like MagicUI.
I cannot move Primitives.tsx
to the /features
directory because for some reason the title sizes change on the landing-page when I move it. The same goes for the (dashboard) and (landing-page) directories. I will continue to work on this and make the appropriate changes.