A portfolio showcase application built with the T3 stack, using Next.js and Prisma.
- Curated portfolio displays
- Next.js for SSR and SSG
- Prisma for database interactions
- Tailwind CSS for styling
- Node.js (v14 or higher)
- npm or yarn
- PostgreSQL (or any Prisma-supported database)
-
Clone the repository: ```bash git clone https://github.com/your-username/craftex.git cd craftex ```
-
Install dependencies: ```bash npm install
yarn install ```
-
Set up environment variables: Create a `.env` file with your database URL: ```env DATABASE_URL="postgresql://user:password@localhost:5432/your-database-name" ```
-
Migrate the database and generate Prisma client: ```bash npx prisma migrate dev --name init npx prisma generate ```
Start the development server: ```bash npm run dev
yarn dev ``` The app will be running at http://localhost:3000.
-
Build the application: ```bash npm run build
yarn build ```
-
Start the production server: ```bash npm start
yarn start ```