This is a template you can use to quickly start your full stack next.js project. After bootstrapping the app with create-next-app, I have added the following:
- an express server
- hosts the site and can be used for crud operations
- environment variable configuration
- frontend: env-config.js
- backend: .env
- next-images
- allows you to import images
- @zeit/next-css
- allows you to import css files
- Clone the repo
git clone https://github.com/apanesar11/nextjs-with-server
- Install NPM packages
npm install
- Start the development server
npm run dev