- Clone the repo in a local directory:
git clone git@github.com:pisa-dev/pisa.dev.git
- Navigate to the folder
- Run:
npm install
- Install Docker
Refer to Docker's official documentation
- Install mysql image
docker pull mysql
- Launch mysql locally inside a docker container:
docker run --name mysql -e MYSQL_ROOT_PASSWORD=secret -p 3306:3306 -d mysql
- Copy the
.env.example
file content in your.env
file - Set the variable
DATABASE_URL = 'mysql://root:secret@127.0.0.1:3306/pisadev'
in your.env
file - Run to initialize an empty database:
npx prisma db push
If Prisma is not installed automatically, refer to Prisma's official documentation
- Run to execute Next.js locally: < 744B /ul>
- Navigate to
http://localhost:3000
npm run dev
To contribute follow the guidelines and don't hesitate to ask for help or guidance.
This is an app bootstrapped according to the init.tips stack, also known as the T3-Stack.