Skip to content

omarashzeinhom/hygraph-reactjs-blog

Repository files navigation

LinkedIn


Logo

Gaming Blog with React Javascript and GraphCMS Api 2022.
View Demo Report Bug Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

Product Name Screen Shot

This is a graphcms blog , that uses api interface for authentication with next js , it has no database however the users are stored on the graphql api graphcms.

Use the BLANK_README.md to get started.

(back to top)

Built With

This section should list any major frameworks/libraries used to bootstrap your project. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.

(back to top)

Getting Started

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • npm
    npm install npm@latest -g

Installation

Below is an example of how you can instruct your audience on installing and setting up your app. This template doesn't rely on any external dependencies or services.

  1. Get the free API Key's at GRAPHCMS: https://graphcms.com/docs, GOOGLE: https://cloud.google.com/secret-manager/docs/accessing-the-api NEXTAUTH: https://next-auth.js.org/configuration/options

  2. Clone the repo

    git clone https://github.com/omarashzeinhom/GraphCMS-and-ReactJS-Gaming-blog-
  3. Install NPM packages

    npm install
  4. Enter your API in .env

    NEXT_PUBLIC_GRAPHCMS_ENDPOINT = 'ENTER YOUR API'
    GRAPHCMS_TOKEN ='ENTER YOUR API'
    GRAPHCMS_ENDPOINT='ENTER YOUR API'
    GOOGLE_SECRET='ENTER YOUR API'
    GOOGLE_ID='ENTER YOUR API'
  5. Enter your NEXTAUTH_URL in .env

    NEXTAUTH_URL = 'ENTER YOUR URL /localhost:3000 '/* You change the port to your preference*/
    NEXTAUTH_URL_INTERNAL='http://10.240.8.16'

(back to top)

Usage

Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.

For more examples, please refer to the Documentation

(back to top)

Roadmap

  • Add Changelog
  • Add back to top links
  • Add Additional Templates w/ Examples
  • Add "components" document to easily copy & paste sections of the readme

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

My Personal Portofolio: https://omarabdelrahman.netlify.app/

(back to top)

Acknowledgments

(back to top)