Pixby
A Full Stack Social Media Application
Built with
- React
- Vite
- Chakra UI
- NodeJs
- Express
- MongoDB
- Nodemailer
- Cloudinary
Installation
- Run the
setup.sh
bash script to install all the modules
bash setup.sh
- Create a
keys.js
file insideserver
folder. Copy the following code snippet add all the secret keys.
module.exports = {
MONGO_URI: "",
JWT_SECRET_KEY: "",
SENDER_EMAIL: "",
SENDER_EMAIL_PASS: "",
CLIENT_PORT_ID: 5050,
CLOUDINARY_NAME: "",
CLOUDINARY_API_KEY: ,
CLOUDINARY_API_SECRET: "",
};
- MONGO_URI : You will get mongodb uri once you create a database. URI helps to define connections between applications and MongoDB instances.For testing purposes, you can use
"mongodb://localhost:27017"
- JWT_SECRET_KEY : You can generate your own secret token from here : https://jwt.io/. It will be used for authorization.
- SENDER_EMAIL : It is used in nodemailer for email service. Provide your email id.
- SENDER_EMAIL_PASS : Create your own app password inside gmail settings and add it here. It will connect nodemailer with your gmail without 2 factor authentication. App Passwords aren’t recommended and are unnecessary in most cases. So it is important to keep them secret.
- CLOUDINARY_NAME, CLOUDINARY_API_KEY, CLOUDINARY_API_SECRET : Cloudinary will provide you once you register.
- Now, run the entire project by using
run.sh
bash script
bash run.sh