Giter Club home page Giter Club logo

mern-stack-projects's People

Contributors

kunaltyagi9 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mern-stack-projects's Issues

Fix:Secret Leak

Hey, you have exposed your username and password within this repo!
dotenv file is also pushedπŸ˜…

Thanks.

Not running

Hello, I'm trying to run these clones my system using command like "npm start" there are not running i've also search solution but did not any solutions please guid me thanks.

Implementing Razorpay!

Anyone tried to implement Razorpay ? if yes please share your gituhub repo or else willl try to implement realtime payment gateway?

Uncaught (in promise) TypeError

Cannot read properties of undefined (reading 'path')
at App.js:19:28
at d (regeneratorRuntime.js:44:17)
at Generator. (regeneratorRuntime.js:125:22)
at Generator.next (regeneratorRuntime.js:69:21)
at o (asyncToGenerator.js:3:20)
at i (asyncToGenerator.js:22:9)

app crashed when I'm uplod image in blog

C:\Users\om\Desktop\MERN-Stack-Projects\Blog-Website\server\node_modules\mongodb\lib\utils.js:98
process.nextTick(function() { throw err; });
^

TypeError: Cannot read properties of undefined (reading 'destroyed')
at GridFSBucketWriteStream.Writable.destroy (node:internal/streams/writable:884:14)
at C:\Users\om\Desktop\MERN-Stack-Projects\Blog-Website\server\node_modules\pump\index.js:45:45
at call (C:\Users\om\Desktop\MERN-Stack-Projects\Blog-Website\server\node_modules\pump\index.js:52:3)
at Array.forEach ()
at C:\Users\om\Desktop\MERN-Stack-Projects\Blog-Website\server\node_modules\pump\index.js:72:25
at GridFSBucketWriteStream. (C:\Users\om\Desktop\MERN-Stack-Projects\Blog-Website\server\node_modules\pump\index.js:31:21)
at GridFSBucketWriteStream.f (C:\Users\om\Desktop\MERN-Stack-Projects\Blog-Website\server\node_modules\once\once.js:25:25)
at GridFSBucketWriteStream.onerror (C:\Users\om\Desktop\MERN-Stack-Projects\Blog-Website\server\node_modules\end-of-stream\index.js:44:12)
at GridFSBucketWriteStream.emit (node:events:525:35)
[nodemon] app crashed - waiting for file changes before starting...

please help me out...

Whatsapp Clone

Hi,
I was wondering if you could share with me the Whatsapp clone videos that you posted on youtube as they seem to have been taken down from there. I was in the middle of watching them.
My email is [email protected]

socket.on('disconnect') handler not present in server

The issue raised when frontend was trying to connect to backend

The useEffect which was creating a socket on the frontend was also running a cleanup function which had socketServer.disconnect(); handler
but it is not present in the backend code .

frontend code issue line
return () => { socketServer.disconnect(); }

How can we define URL for detail page in blog site?

Thank you for the wonderfull tutorial, My self Amit having 9+ years of experience in Web developement and i was learning react and node from your youtube video and recently i have one issue is that i can not define proper URL for detail page.

Can you please help me on that part?

Undefined

When I m trying to upload file it says uncaught (in promise) TypeError: cannot read properties of undefined(reading 'path') at getImage(App.js:21:1)
Please help
Also it shows error while connecting to database
Please help πŸ™

gfs.createReadStream(file.filename) returns nothing

In image-controller.js :

export const getImage = async (req, res) => {
try {
const file = await gfs.files.findOne({ filename: req.params.filename });
const readStream = gfs.createReadStream(file.filename);
readStream.pipe(response);
} catch (error) {
console.log('Error encountered in image-controller');
return res.status(500).json(error);
}
};

readStream returns nothing. Kindly help me with this ?

Issue with callback from the paytm payment gateway.

Everything works perfectly after deploying on heroku but the payment gateway doesn't work. It says the syntax of callback url is not correct. In the server.js file, the callback url is specified as - paytmParams['CALLBACK_URL'] = 'callback';
I have attached the screenshot of the problem.

I also tried specifying the callback url as '/callback', '' '/callback', 'https://securegw-stage.paytm.in/callback'. None of them worked.

The heroku logs do not show any error either, it is also attached
Screenshot from 2022-09-13 03-12-12
Screenshot from 2022-09-13 03-05-58

Error: Invalid Hook call and Unable to read properties of null (reading 'UseState')

I'm begineer with react and was building a clone project. it was all going fine but just after i used react-oauth/google it shows some errors and I'm unable to fix them. I have provided with the important stuff so please look over and help me out.

Here is the version of react i'm working on.

"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"

Screenshot 2024-07-11 202754
Screenshot 2024-07-11 202814

please help me out!!

### App.js

import { GoogleOAuthProvider } from '@react-oauth/google';import Messenger from './components/Messenger';function App() {

const clientId = '119025373029-s16up4lflr8hf84ee6ubmeptir5iscgm.apps.googleusercontent.com'

return (<GoogleOAuthProvider clientId={clientId}><Messenger /></GoogleOAuthProvider>);}

export default App;

### LoginDialog.jsx

import { Dialog, Box, Typography, List, ListItem, styled } from '@mui/material';import { qrCodeImage } from '../../constants/data';import { GoogleLogin } from '@react-oauth/google';

const Component = styled(Box)    display: flex;

const Container = styled(Box)    padding: 56px 0 56px 56px;

const QRCode = styled('img')({height: 264,width: 264,margin: '50px 0 0 50px'})

const Title = styled(Typography)    font-size: 26px;     color: #525252;     font-weight: 300;     font-family: inherit;     margin-bottom: 25px;const StyledList = styled(List)    & > li {     padding: 0;     margin-top: 15px;     font-size: 18px;     line-height: 28px;     color: #4a4a4a;     }

const dialogStyle = {height: '96%',marginTop: '12%',width: '60%',maxWidth: '100%',boxShadow: 'none',overflow: 'hidden',}

const LoginDialog = () => {

const onLoginSuccess = () => {

}

const onLoginError = () => {

}

return (
    <Dialog 
        open={true}
        PaperProps={{sx: dialogStyle }}
    >
        <Component>
            <Container>
                <Title>Use WhatsApp on your computer:</Title>
                <StyledList>
                    <ListItem>1. Open WhatsApp on your phone</ListItem>
                    <ListItem>2. Tap Menu Setting and Select Whatsapp</ListItem>
                    <ListItem>3. Point your phone to this screen to capture the code</ListItem>
                </StyledList>
            </Container>
            <Box style={{position: 'relative'}}>
                <QRCode src={qrCodeImage} alt="qr code" />    
                <Box style={{ position: 'absolute', top: '50%', transform: 'translateX(25%)'}}>
                    <GoogleLogin 
                        onSuccess={onLoginSuccess}
                        onError={onLoginError}
                    />
                </Box>
            </Box>
        </Component>
    </Dialog>
)

}export default LoginDialog;

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.