Skip to content

Commit

Permalink
Merge pull request #1 from aahna-ashina/aahna-ashina/dw-43/implement-…
Browse files Browse the repository at this point in the history
…nextjs-server

feat: Implement Next.js server (#2)
  • Loading branch information
aahna-ashina authored May 24, 2022
2 parents 06d0d1a + 37625a9 commit 3691830
Show file tree
Hide file tree
Showing 15 changed files with 11,526 additions and 0 deletions.
7 changes: 7 additions & 0 deletions server/.env.local.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
BASIC_AUTH_USERNAME=username
BASIC_AUTH_PASSWORD=password

GOOGLE_APPLICATION_CREDENTIALS=
GOOGLE_WALLET_ISSUER_ID=
GOOGLE_WALLET_CLASS_ID=
GOOGLE_WALLET_USER_ID=
3 changes: 3 additions & 0 deletions server/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
30 changes: 30 additions & 0 deletions server/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# 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

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

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local
29 changes: 29 additions & 0 deletions server/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Pass Server

Next.js server for REST API.

## Install the packages

```
npm install
```

## Add the file with local environment variables

```
cp .env.local.sample .env.local
```

## Run the development server

```
npm run dev
```

http://localhost:3000

## Create production build

```
npm run build
```
11 changes: 11 additions & 0 deletions server/interfaces/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export interface Pass {
// TODO
}

export interface ApplePass extends Pass {
// TODO
}

export interface GooglePass extends Pass {
// TODO
}
5 changes: 5 additions & 0 deletions server/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
Loading

1 comment on commit 3691830

@vercel
Copy link

@vercel vercel bot commented on 3691830 May 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mobile-passport – ./

mobile-passport-git-main-nation3.vercel.app
mobile-passport.vercel.app
mobile-passport-nation3.vercel.app

Please sign in to comment.