Skip to content

Commit

Permalink
[#1] Set up Next.js framework (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierobert committed Sep 13, 2022
1 parent cb54b6d commit 2c3efa1
Show file tree
Hide file tree
Showing 16 changed files with 7,298 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
# Git Repository Template
# JS Framework Benchmark

Project repository template to set up all public projects at [Nimble](https://nimblehq.co/)
The pository contains POC applications to assess full-stack JS frameworks. The benchmarking process aims to make an informed decision on which framework is best suited for Nimble.

More information can be found on Notion:
- [Engineeing Initiative](https://www.notion.so/nimblehq/Benchmark-full-stack-JS-application-frameworks-8d8a4016855d43f6b3d88cfdb1aea287)
- [Assessment Criteria](https://www.notion.so/nimblehq/JS-application-frameworks-Assessment-Criteria-eb4d92659566426791516c5c071ec052)
- [Scope of the POC applications](https://www.notion.so/nimblehq/JS-application-frameworks-POC-Application-Requirements-b95856f0eed4477c8a41cbebb072c612)

## Usage

Clone the repository

`git clone git@github.com:nimblehq/git-template.git`
`git clone git@github.com:nimblehq/js-framework-benchmark.git`

## License

Expand Down
3 changes: 3 additions & 0 deletions nextjs/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
36 changes: 36 additions & 0 deletions nextjs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
1 change: 1 addition & 0 deletions nextjs/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-exact=true
1 change: 1 addition & 0 deletions nextjs/.tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 16.17.0
19 changes: 19 additions & 0 deletions nextjs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

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

[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.

The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
8 changes: 8 additions & 0 deletions nextjs/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @type {import('next').NextConfig} */

const nextConfig = {
reactStrictMode: true,
swcMinify: true,
}

module.exports = nextConfig
Loading

0 comments on commit 2c3efa1

Please sign in to comment.