maxfouquet / next.js-typescript-starter

Next.js implemented using Typescript and Jest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript and Next.js

Next.js implemented using Typescript and Jest

Installation

Clone the repository

git clone https://github.com/maxfouquet/next.js-typescript-starter.git

Set up dependencies

npm install

Development mode

npm run dev

Start

npm start

Test

npm run test

Test Watch

npm run test:watch

Build

npm run build

Next.js is running on http://localhost:3000

Folder structure

|-- __mocks__
|   -- mocks.js
|-- pages
    -- index.tsx
|-- src
|   |-- components
|       -- Home.spec.tsx
|       -- Home.tsx
|       -- Layout.tsx
|   |-- static
|       |-- css
|           -- style.css
|-- babel.config.json
|-- enzyme.js
|-- jest.tsconfig.json
|-- next-env.d.ts
|-- next.config.js
|-- package.json
|-- README.md
|-- tsconfig.json

License

MIT

About

Next.js implemented using Typescript and Jest


Languages

Language:TypeScript 56.9%Language:JavaScript 43.1%