Getting Started
Creating the repository
To get started, simply use the ShipZen template on Github.
- Visit https://github.com/ludicroushq/shipzen (opens in a new tab)
- Click on the "Use this template" button
- Click "Create a new repository"
- Fill out the repository details
- Profit!
Install dependencies
- Clone the repository
- Run
npm install
Remove the placeholders
- Search the entire project for
TODO
and replace it with your application's name - Delete the
LICENSE
file - Update the
package.json
'slicense
field
⚠️
Remember to delete the LICENSE file and update the package.json
's license
field if the project you are working on is not open source.
Setting up the .env
The following environment variables are required to run ShipZen:
DATABASE_URL=xxx # a `postgresql://` url, you can update prisma to use another database as well
SMTP_URL=xxx # a `smtp://` url
AUTH_SECRET=xxx # generate with `npx auth secret`
Add the filled in values to a .env.local
file in the root of the project. Next.js will automatically load the environment variables when starting the dev server.
You can find a better way to manage environment variables in the direnv documentation.
Profit! 🎉
Finally start the dev server with npm run dev
and visit http://localhost:3000
to see your new application in action.