This is a Next.js project bootstrapped with create-next-app
using mikro-orm
.
You can read my medium guide here
Run npm install
First, run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
This repo contains a few extra packages to get decorators working with NextJS and babel. You can see them by inspecting .babelrc
There is also a configuration for the CLI tool. Notability, the tsconfig.orm.json
has a target of ES6
to run migrations.
The general structure and importing of files is up to the developer however, this was just the way I have set it up.
Feel free to open any issues or PRs if you're having trouble or want to add to this repo.