adrianhajdin / project_mern_memories

This is a code repository for the corresponding video tutorial. Using React, Node.js, Express & MongoDB you'll learn how to build a Full Stack MERN Application - from start to finish. The App is called "Memories" and it is a simple social media app that allows users to post interesting events that happened in their lives.
https://youtube.com/playlist?list=PL6QREj8te1P7VSwhrMf3D3Xt4V6_SRkhu
4.96k stars 1.83k forks source link

Does not work, even when copying the full repository #137

Closed ThomasAurelius closed 6 months ago

ThomasAurelius commented 1 year ago

I finished the tutorial, and went through and verified no spelling errors, and still wasn't working, so I copied the whole repository, from part 6 and ran it... and still doesn't work. Posts don't ever load. My mongoose settings are correct.

0xMALVEE commented 1 year ago

probably the qauth problem. since google has new api now the google identity services. here you can check my latest video on how to use it https://youtu.be/TqlVP_IkS28

Gagenrllc commented 1 year ago

I finished the tutorial, and went through and verified no spelling errors, and still wasn't working, so I copied the whole repository, from part 6 and ran it... and still doesn't work. Posts don't ever load. My mongoose settings are correct.

Do you mind showing the console errors ? I wonder if you are seeing some of my issues.

rizkymhmd2k commented 1 year ago

had you set the proxy from client to your local?

Gagenrllc commented 1 year ago

had you set the proxy from client to your local?

Yes. I think I was able to resolve this by using configureStore.

The way I set it up was like this.

-- Store.js

import {configureStore} from '@reduxjs/toolkit';
import postsReducer from './features/posts/postsSlice.js';

export const store = configureStore({
    reducer: {
        posts: postsReducer,
    },
});

export default store;

Also this, postSlice.js

import { createSlice } from '@reduxjs/toolkit';

const initialState = {
    posts:[],
    isLoading: true
}

const postsSlice = createSlice(
    {
        name:'posts',
        initialState
    }
)

export default postsSlice.reducer;