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)
- 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
-
Open
packages/backend/.env
and set thePG_USER
,PG_PASSWORD
andPG_DB_NAME
env vars. -
cd into
packages/backend/
and run the migrations withnode ace migration:run
To deploy the backend run the ./deploy_backend.sh
file and deploy the generated deploy
folder to a service like Heroku.