Skip to content

Added Google Oauth Signup #112

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

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open
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
2 changes: 2 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
REACT_APP_GOOGLE_CLIENT_ID=<Google App Client ID>
REACT_APP_GOOGLE_CALLBACK_URL=<Google Callback URL>
Copy link
Member

Choose a reason for hiding this comment

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

Add a new line at the end.

15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,25 @@ Documentation for the project is hosted [here](https://osp-web-docs.surge.sh/).

**Note:** Before setting up the frontend make sure to have Setup the [Backend Repo](https://github.com/anitab-org/anitab-forms-backend).

1. To start the server:
1. Create a `.env` file in the project root directory and add **Client ID** and **Callback URL** of Google like this:

```
REACT_APP_GOOGLE_CLIENT_ID=<Google App Client ID>
REACT_APP_GOOGLE_CALLBACK_URL=<Google Callback URL>
```

To get **Client ID** and **Callback URL** of Google OAuth App follow [this docs](https://developers.google.com/adwords/api/docs/guides/authentication#create_a_client_id_and_client_secret).

2. To start the server:

```
cd anitab-forms-web
npm install
npm start
```

2. Navigate to `http://localhost:3000/` in your browser.
3. You can terminate the process by `Ctrl+C` in your terminal.
3. Navigate to `http://localhost:3000/` in your browser.
4. You can terminate the process by `Ctrl+C` in your terminal.

## Contributing

Expand Down
6 changes: 2 additions & 4 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ module.exports = {
items: [
{
label: 'Backend Docs',
href:
'https://github.com/anitab-org/anitab-forms-backend/wiki',
href: 'https://github.com/anitab-org/anitab-forms-backend/wiki',
Copy link
Member

Choose a reason for hiding this comment

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

Don't make changes unrelated to this PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

I just ran npm run format. It's only formatting change.. Should I remove it ?

Copy link
Member

Choose a reason for hiding this comment

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

Please update your dependency and reformat the code.

},
],
},
Expand Down Expand Up @@ -85,8 +84,7 @@ module.exports = {
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl:
'https://github.com/anitab-org/anitab-forms-web/docs',
editUrl: 'https://github.com/anitab-org/anitab-forms-web/docs',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
Expand Down
Loading