I've created this repository with Next.js recommended technologies to excel my knowledge. Furthermore, I've used best practices to configure and implement this repository.
I've utilized this repo with these tools:
- Next.js as the framework.
- Prisma is the ORM and hold db migrations
- PlanetScale is the database.
- tRPC used for APIs typesafty.
- Tailwind CSS for styling.
- Vercel for deployment and hosting.
Create .env file from example:
# copy .env file
cp .env.example .env
Open .env file and fill environment variables. (Note that Since I haven't run the code with MySQL, I recommend using PlanetScale.)
Then, Run the development server:
# install dependencies
npm install
# run the dev server
npm run dev
Open http://localhost:3000 with your browser to see the result.