Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the README #7

Merged
merged 1 commit into from
Aug 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 34 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
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).
# Next Google Photos

## Getting Started
## Description

First, run the development server:
Web Application to access your public and private Photos on Google.

## Website

[photos.dinodev.hu](https://photos.dinodev.hu/)

## Development

### Prerequisites

Install [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git), the free and open source distributed version control system.
Install [Node.js](https://nodejs.org/) which includes Node Package Manager.

### Clone and Install

Run `git clone [email protected]:orbanszlrd/next-google-photos.git` to clone the repository from [GitHub](https://github.com/orbanszlrd/next-google-photos).

### Run the Development Server

```bash
npm run dev
Expand All @@ -12,23 +29,21 @@ 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.

## Learn More
### Setup the Environment Variables

To learn more about Next.js, take a look at the following resources:
- Visit the [Google API Console](https://console.cloud.google.com/) to obtain OAuth 2.0 credentials such as a client ID and client secret that are known to both Google and your application.

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

## Deploy on Vercel
```log
GOOGLE_CLIENT_ID=<your-google-client-id>
GOOGLE_CLIENT_SECRET=<your-google-client-secret>
GOOGLE_REFRESH_TOKEN=<your-google-client-refresh-token>
GOOGLE_GRANT_TYPE="refresh_token"
```

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
## Useful Links

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
[Google Photos APIs](https://developers.google.com/photos/library/guides/get-started)
[Using OAuth 2.0 to Access Google APIs](https://developers.google.com/identity/protocols/oauth2)
[GCP Credentials - APIs & Services](https://console.cloud.google.com/apis/credentials)
[Google Account Permissions](https://myaccount.google.com/permissions)
[Google APIs Node.js Client](https://github.com/googleapis/google-api-nodejs-client)
16 changes: 4 additions & 12 deletions components/navbar.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
li {
display: inline-block;

div {
padding: 1rem;
}

a {
display: block;
padding: 1rem;
Expand All @@ -38,12 +42,6 @@
display: none;
}

@media only screen and (max-width: 800px) {
&.left {
padding-left: 0.5rem;
}
}

@media only screen and (max-width: 600px) {
span {
display: none;
Expand All @@ -57,12 +55,6 @@

&.right {
padding-right: 1rem;

@media only screen and (max-width: 800px) {
&.right {
padding-right: 0.5rem;
}
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion pages/albums/[albumId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const AlbumPhotos: NextPage = ({
<Layout>
<Head>
<title>Album Photos</title>
<meta name="description" content="Photos" />
<meta name="description" content="Album Photos" />
<link rel="icon" href="/favicon.ico" />
</Head>
{loading ? (
Expand Down