Setup
Pail is a full stack NextJS application meaning only one web service needs to be run along with a PostgreSQL database. The easiest way to deploy is via Railway which will manage nearly all settings for you.
Manual Setup
- Clone the project off of GitHub.
- Install all dependencies by running
npm install -g yarn
yarn install- Install + setup PostgreSQL and set an environment variable
DATABASE_URL_NON_POOLINGto the full connection URL. - Also set a
NEXTAUTH_SECRETin your.envfile (this should be completely random). - Setup GitHub sign in via the tutorial here (opens in a new tab) (Set the
GITHUB_CLIENT_IDandGITHUB_CLIENT_SECRETin your environment variables). - Optionally set the
DOCKER_USERNAMEandDOCKER_PASSWORDto pull images from the GitHub container registry. - Push the db schema and build the website by running
yarn build.