how can i run hosted project in local, used redirect uri,clientid after making an account on spotify but getting error

i cloned https://github.com/espitiaandres/studyfi and i want to run it in local. i have made my account on spotify developer and took redirecturi and client id and wrote in config.js but localhost is refusing to connect


    ```const authEndpoint = "http://accounts.spotify.com/authorize";
    // const clientId = "53bcecd410634483b53########";
    const clientId = "e6690d4f0b734a6c89336c#######";
    const redirectUri = "http://localhost:8080/callback";                    // dev redirectUri
    // const redirectUri = "https://www.andres-espitia.com/studyfi/";      // prod redirectUri
    const scopes = [
        "user-top-read",
        "user-read-currently-playing",
        "user-read-playback-state",
        "user-modify-playback-state",
        "playlist-read-private"
    ];
    
    export { 
        authEndpoint, 
        clientId, 
        redirectUri, 
        scopes 
    }```
in app.js the following code is written
app.js

    const getCurrentlyPlaying = (token) => {
        axios({
            method: 'get',
            url: 'https://api.spotify.com/v1/me/player',
            headers: {
                'Authorization': `Bearer ${token}`
            }
        }).then(({ data }) => {
            if(!data) {
                setData(data);
                return;
            }
token.js 

in token.js the following code is written
there is probably authorization error too
export const setToken = (token) => ({
type: ‘SET_TOKEN’,
token
});

export const startSetToken = (token = "") => {
    return (dispatch, getState) => {
        return dispatch(setToken(token));
    }
}

getting this link after clicking login
http://localhost:8080/callback#access_token=BQBR6jxgnBEWYYIuRjsvnxkQ-RqzVFRZ7JR1Q_9F3XWHhExQ7EaWTTj1z5ZzHXu2onRE8xRvRBHWz0qCB5Z776gHfejbXogxvkwaXDQgZGGFb4ezvHSM_87Ofy9wfZJD1_DZkehZ9NeEMehXeDShZaOVFo4DL-hMfaWNcDa9oQTQz-tJ-7UZcjiw&token_type=Bearer&expires_in=3600

how do i fix this and make this project run on my local