SocialLoginPostgers is a demonstration website that showcases the integration of PostgreSQL as a database with Express.js for the backend and React.js for the frontend. The project also utilizes Google and Facebook login APIs to enable seamless user registration and authentication.
- Introduction
- Features
- Prerequisites
- Installation
- Configuration
- Usage
- Technologies Used
- Contributing
- License
SocialLoginPostgers demonstrates a practical implementation of user authentication using popular social media platforms. By integrating Google and Facebook login APIs, this project enables users to sign up and log in seamlessly, while securely storing user data in a PostgreSQL database.
- User registration and authentication using Google and Facebook login APIs.
- Secure storage of user information in a PostgreSQL database.
- Express.js server providing a RESTful API for user management.
- React.js frontend for a user-friendly and responsive interface.
Before you begin, ensure you have met the following requirements:
- Node.js and yarn installed on your machine.
- PostgreSQL database up and running.
- Google and Facebook developer accounts and API keys.
-
Clone this repository:
git clone https://github.com/yourusername/SocialLoginPostgers.git
-
Navigate to the project root:
cd SocialLoginPostgers
-
Install backend dependencies:
cd backend yarn
-
Install frontend dependencies:
cd ../frontend yarn
Configure your environment variables by creating a config.env
file in the backend/config
directory
PORT=3000
NODE_ENV='dev'
JWT_SECRET=your_jwt_secret
DB_HOST=your_db_host
DB_DATABASE=your_db_name
DB_USER=your_db_username
DB_PASSWORD=your_db_password
DB_PORT=your_db_port
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
FACEBOOK_APP_ID=your_facebook_app_id
FACEBOOK_APP_SECRET=your_facebook_app_secret
GITHUB_CLIENT_ID=your_github_client_id
GITHUB_CLIENT_SECRET=your_github_client_secret
- Start the backend dev server:
cd backend yarn dev
- Start the frontend development server:
cd ../frontend yarn dev
- Access the frontend by navigating to
localhost:5173
in your web browser
- Node.js
- Express.js
- React.js
- PostgreSQL
- Google and Facebook Login APIs
Contributions are welcome! To contribute to SocialLoginPostgers, follow these steps:
- Fork this repository.
- Create a new branch:
git checkout -b feature/your-feature-name
. - Make your changes and commit them:
git commit -m 'Add some feature'
. - Push to the branch:
git push origin feature/your-feature-name
. - Submit a pull request.
None