Node.js/Python/SQLAlchemy Authentication Website with Google API.
This project is a web application built using Node.js and Python with SQL for storage, implementing a simple sign-up and login functionality. It also includes Google API authentication using OAuth 2.0. The backend is built using Flask and SQLalchemy, while the frontend is built with Node.js and Express. This application can be used as a boilerplate for building other web applications that require authentication.
- Sign-up and login functionality
- Google authentication using OAuth 2.0
- Simple backend built with Flask and SQLalchemy
- Begginer friendly frontend built with Node.js and Express
- Easy to use and modify to fit specific use cases
- Node.js
- Python
- Express
- Flask
- SQLalchemy
- Passport
- Passport-google-oauth20
Clone this repository to your local machine. Install the required dependencies by running npm install and pip install in the project directory.
- Be certain that you have npm, npx, and express functioning well as it can malfunction if your enviornment path variable does not include their install location Obtain clientID and clientSecret credentials from Google API. Set up environment variables for clientID and clientSecret.
Start the Node.js server by running npm start in the project directory. Start the Python server by running python app.py in the project directory. Navigate to http://localhost:3000 in your web browser. Click the "Sign up" button to create a new account, or click the "Login" button to log in to an existing account. Click the "Login with Google" button to log in with your Google account. Log out by clicking the "Logout" button.
This project is open-source and contributions are welcome. To contribute, please fork this repository, make your changes, and create a pull request.