https://github.com/preprio/next-complete-starter
https://github.com/preprio/next-complete-starter
nextjs nextjs-starter
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/preprio/next-complete-starter
- Owner: preprio
- Created: 2024-11-05T09:42:46.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-02-28T09:33:06.000Z (3 months ago)
- Last Synced: 2025-02-28T21:04:39.879Z (3 months ago)
- Language: TypeScript
- Size: 547 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
Awesome Lists containing this project
README
# Next.js Complete Starter
Check out the [Complete guide to Next.js and Prepr](https://docs.prepr.io/connecting-front-end-apps/next-complete-guide) to learn more.
## Setup
Make sure to install the dependencies:
```bash
# yarn
yarn install# npm
npm install# pnpm
pnpm install --shamefully-hoist
```## Add the environment file
Copy the .env.example file in this directory to .env (which will be ignored by Git) by running the following command:
```bash
cp .env.example .env.
```## Update the environment file
In the .env file, replace `YOUR_PREPR_GRAPHQL_URL` with the *API URL* of the Prepr *GraphQL Preview* access token from your Acme Lease Demo environment.
Then, create a new access token in Prepr with the `segments` permission.

Replace `YOUR_SEGMENTS_ACCESS_TOKEN` with the newly generated *Access token* value.
## Development Server
Start the development server on http://localhost:3000
```bash
npm run dev
```## Production
Build the application for production:
```bash
npm run build
```Start the production build:
```bash
npm run start
```Check out the [deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more
information.