Next-Adonis-Typescript
Next-Adonis-Typescript copied to clipboard
trafficstars

Next.js + Adonis.js Full Typescript Starter Template
Welcome to this starter project that uses Next.JS and Adonis.JS v5
it demos a basic setup on which the typescript types are shared between the frontend and the backend. You can still however deploy the Next.js and the Adonis.js as separate apps on different providers. (i.e: Vercel and Heroku respectively)
Development
- open a terminal and cd into the projects' root directory directory and run
yarn
- open a terminal and run
yarn build-watch
- open a second terminal and run
yarn start-server
The Next.js frontend will be running at localhost:3000
First time DB setup
-
Open
packages/backend/.envand set thePG_USER,PG_PASSWORDandPG_DB_NAMEenv vars. -
cd into
packages/backend/and run the migrations withnode ace migration:run
Deployment
To deploy the backend run the ./deploy_backend.sh file and deploy the generated deploy folder to a service like Heroku.