https://github.com/ics-software-engineering/nextjs-application-template
Next.js sample application template.
https://github.com/ics-software-engineering/nextjs-application-template
bootstrap5 nextjs14 prisma react-hook-form yup
Last synced: about 1 month ago
JSON representation
Next.js sample application template.
- Host: GitHub
- URL: https://github.com/ics-software-engineering/nextjs-application-template
- Owner: ics-software-engineering
- Created: 2024-07-08T19:11:02.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-12T19:55:10.000Z (almost 2 years ago)
- Last Synced: 2024-09-13T09:01:44.968Z (almost 2 years ago)
- Topics: bootstrap5, nextjs14, prisma, react-hook-form, yup
- Language: TypeScript
- Homepage: https://ics-software-engineering.github.io/nextjs-application-template/
- Size: 4.19 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/ics-software-engineering/nextjs-application-template/actions/workflows/ci.yml)
For details, please see http://ics-software-engineering.github.io/nextjs-application-template/.
## Installation
1. **Install PostgreSQL** and create a database for your app:
```bash
createdb nextjs-application-template
```
2. **Clone this template** (or use the "Use this template" button on GitHub to create your own repo).
3. **Install dependencies:**
```bash
npm install
```
4. **Create your .env file:**
- Copy `sample.env` to `.env` and update the `DATABASE_URL` to match your PostgreSQL setup.
5. **Run database migrations:**
```bash
npx prisma migrate dev
```
6. **Generate Prisma client:**
```bash
npx prisma generate
```
7. **Seed the database:**
```bash
npm run seed
```
8. **Start the development server:**
```bash
npm run dev
```
The app will be available at [http://localhost:3000](http://localhost:3000).
See the [template documentation](http://ics-software-engineering.github.io/nextjs-application-template/) for more details and walkthroughs.