Coder Social home page Coder Social logo

cloneface's Introduction

This is a clone of facebook made with Next JS, Next-Auth with facebook provider, firebase storage and firebase firestore database

Homepage

LoginPage

For The Authentication with Next Auth , you need to :

  • Create an Facebook app here
  • You take the client Id and client secret and put it in your .env.local file
  • You add the nextauth url (the localhost url in development) and the next auth secret for the jwt token in your .env.local file as well
  • The variables you must have are :
    • FACEBOOK_CLIENT_ID
    • FACEBOOK_CLIENT_SECRET
    • NEXTAUTH_URL
    • NEXTAUTH_SECRET
  • In your facebook app you must add a product, the Facebook Login
  • You must add this url : https://next-auth-example.vercel.app/api/auth/callback/facebookin your Facebook Login parameter under Valid OAuth redirect URIs
  • And you must activate for the public_profile the advanced access
  • In the Basic parameter of your application you must add a valid URL of Privacy Policy and of Data Deletion. You can deploy your app on vercel before adding authentication and then add the url of your app deployed in these parts.

For the Database and the storage

  • Create a project on firebase
  • Find the parameter of your project and add it to a file call firebase.js in the root folder of your app
  • configure this file
  • Add the environment variable to your .env file
  • and run the project

cloneface's People

Contributors

bagobob avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.