A personal boilerplate based on Next.js.
features:Next.js, TypeScript, GraphQL, MongoDB, Tailwind CSS
Before getting start, please make sure you have created an empty database (e.g. MongoDB). Then, rename .env.example
to .env
and edit the environment variable. This will enable MongoDB database connection, and the GraphQL communicate between client and server.
- Install npm dependencies
npm install
- Start the app
npm run dev
Open http://localhost:3010 with your browser to see the result.
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.