Home

Awesome

<img alt="" src="https://res.cloudinary.com/muhrusdi/image/upload/v1634535749/senjs.jpg">

Features

Installation

Install sen.js with yarn or npm

  git clone https://github.com/jamastek/senja.git my-app
  cd my-app
  yarn install

Run the development server:

  yarn dev
  # or
  npm run dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.js. The page auto-updates as you edit the file.

Structures

nextjs-boilerplate
├── apollo
│   ├── models
│   │   └── index.ts
│   ├── mutations
│   │   └── index.ts
│   ├── queries
│   │   └── index.ts
│   ├── states
│   │   └── index.ts
│   ├── cache.ts
│   ├── client.ts
├── components
│   ├── button
│   │   └── index.ts
├── containers
│   ├── layout
│   │   └── index.ts
├── pages
│   ├── api
│   │   └── graphql
│   │       └── index.ts
│   ├── index.ts
├── prisma
│   ├── client  #prisma-client
│   │   └── index.ts
│   ├── migrations #prisma migration
│   │   └── index.ts
│   ├── generated #nexus generate
│   │   └── nexus-typegen.ts
│   │   ├── schema.graphql
│   ├── nexus
│   │   ├── schema
│   │   │   ├── _migrations.ts
│   │   │   ├── _queries.ts
│   │   │   ├── post.ts
│   │   └── index.ts
│   ├── schema.prisma
│   ├── schema.ts
├── public
├── styles
│   ├── global.css
├── .gitignore
├── next-env.d.ts
├── next.config.js
├── postcss.config.js
├── tailwind.config.js
├── tsconfig.json
├── LICENSE
└── package.json

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

DATABASE_URL=mysql://example:example@localhost:3306/db_name

API_URL=/api/graphql

NEXT_PUBLIC_API_URL="/api/graphql"

JWT_SECRET=example_jwt

APOLLO_KEY=service:example123

APOLLO_GRAPH_VARIANT=current

APOLLO_SCHEMA_REPORTING=true

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

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.