Welcome to Hyperion! This application is designed to provide a hands-on experience for newbies looking to implement authentication in a web application using Passport.js, MySQL, and React. This repository is made so that newbies to Node.js or session/cookie authentication in general can get an idea of how the process works.
Follow these steps to set up and run the project locally:
Make sure you have the following installed:
- Node.js and npm
- MySQL
- Clone the repository:
git clone https://github.com/sekisaii/hyperion.git
#install dependencies ==>
cd hyperion
npm install
#set up the MySQL database ==>
#you have to install mysql server from here [https://www.mysql.com/downloads/]
#and configure it properly if you haven't already
#create a new MySQL database for the project and update the configuration in db.js.
#start the server ==>
npm run server
#start the React app (in a new terminal):
npm run client
Visit http://localhost:3000 in your browser to access the application.
This application demonstrates user authentication using Passport.js. Explore the codebase to understand the implementation details. Feel free to customize and extend it to suit your project requirements.
For beginners, the following resources might be helpful:
Passport.js Documentation => https://www.passportjs.org/docs/
If you encounter any issues or have suggestions for improvement, please open an issue. Contributions are always welcome!
Happy coding!
