Pages

Sunday, 10 November 2024

网站enji.dev的源码

 a monorepo for my personal website and projects, built with Turborepo + pnpm 

enji.dev

A personal website with a blog, project showcase, and work information.

Tech Stack

  • 🚀 Next.js + TypeScript
  • ➰ Framer Motion
  • 🍃 Tailwind CSS
  • ✍ MDX

Running the Project

To get started, I recommend installing pnpm since it's the package manager used in this repository.

Begin by forking the repository and then cloning it to your local machine:

git clone <your-fork>

Navigate to the project's root directory:

cd ./enji.dev

Next, copy the development version of the env file:

cp ./apps/enji.dev/env.example ./apps/enji.dev/env.local

Now, you have the env.local file ready for configuration:

DATABASE_URL = your-database-connection-string
SALT_IP_ADDRESS = super-secret

For the DATABASE_URL use your database connection string. I personally use the free version of MongoDB, and you can do the same by creating a database there and adding the connection string to the env.local.

As for SALT_IP_ADDRESS, feel free to fill it with some of your secret words. It acts as a salt for hashing users' IP addresses.

Once configuration is complete, still at the root of the project directory, install the required dependencies:

pnpm install

Finally, run the project:

pnpm dev
Now, your project should be up and running smoothly!

 from https://github.com/enjidev/enji.dev

 

 

No comments:

Post a Comment