This Next.js project uses Prisma ORM for database interactions and handles file uploads.
The .env file has been included to connect the database/user/password.
This would not normally be done outside of a challenge.
Before you begin, install NodeJS
-
Install PostgreSQL:
/bin/bash -c "$(curl -fsSL [https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh](https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh))" brew install postgresql brew services start postgresql createdb mydb psql -d mydb -
Create a PostgreSQL User:
-
Install PostgreSQL:
/bin/bash -c "$(curl -fsSL [https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh](https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh))" brew install postgresql brew services start postgresql createdb mydb psql -d mydb -
Create a PostgreSQL User:
psql postgres # or sudo -u postgres psql CREATE USER 'myuser' WITH PASSWORD 'mypassword' SUPERUSER; \du
_Update your
.envwith these credentials. -
Install Dependencies:
npm install # or yarn install or pnpm install -
Generate Prisma Client & Run Migrations:
npx prisma generate npx prisma migrate dev --name init
-
Run the Development Server:
npm run dev # or yarn dev or pnpm dev or bun devOpen
http://localhost:3000.
- Implement user authentication. NextJS Auth
- Improve form validation and error handling.
- Add confirmation notifications for submissions.
- Add feedback while submitting
- Display current user attributes
- Enhance UI/UX.