Git Product home page Git Product logo

Comments (7)

mldangelo avatar mldangelo commented on August 28, 2024

Hi, sorry for the bug. The following lines should be added to the sample.env file:

GOOGLE_CLIENT_ID=12345
GOOGLE_CLIENT_SECRET=12345

You can create credentials for them here: https://console.cloud.google.com/apis/credentials You should configure them like this.

client_secret

If you would like to disable oauth completely, you will need to remove passport.js To do this:

  1. remove server/auth.js
  2. the associated calls in server/server.js
  3. the calls to passport.js in server/routes/index.js
  4. remove server/models
  5. remove server/routes/middleware.js and associated calls in server/routes/index.js
  6. the private and admin routes from app/components/Routes/ and associated calls in app/entry.js
  7. the admin page in app/views/admin.js
  8. At this point, you might as well remove all references to mongo as well, and sessions.
  9. Don't forget to modify package.json and yarn.lock eliminating the dependencies you just removed.

If you would like to run the project without user authentication, I can create a new branch for you that does these things.

from personal-site.

KaleabTessera avatar KaleabTessera commented on August 28, 2024

Hey man, that would be great! I am just looking for a simple bare bones react template for my cv and your one looks great!

Fyi, after adding the Google ids to env, I still get the following error:

[nodemon] starting `babel-node server/server.js`
fs.js:646
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: ENOENT: no such file or directory, open '/home/kale-abworl/Downloads/Test/mldangelo1/dist/index.html'
    at Object.fs.openSync (fs.js:646:18)
    at Object.fs.readFileSync (fs.js:551:33)
    at routes (/home/kale-abworl/Downloads/Test/mldangelo1/server/routes/views/app.js:57:24)
    at routes (/home/kale-abworl/Downloads/Test/mldangelo1/server/routes/index.js:27:3)
    at Object.<anonymous> (/home/kale-abworl/Downloads/Test/mldangelo1/server/server.js:66:1)
    at Module._compile (module.js:652:30)
    at loader (/home/kale-abworl/Downloads/Test/mldangelo1/node_modules/babel-register/lib/node.js:144:5)
    at Object.require.extensions.(anonymous function) [as .js] (/home/kale-abworl/Downloads/Test/mldangelo1/node_modules/babel-register/lib/node.js:154:7)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)
    at Object.<anonymous> (/home/kale-abworl/Downloads/Test/mldangelo1/node_modules/babel-cli/lib/_babel-node.js:154:22)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
[nodemon] app crashed - waiting for file changes before starting...

from personal-site.

mldangelo avatar mldangelo commented on August 28, 2024

@KaleabTessera I'll work on an update this weekend. To solve your error, set NODE_ENV=development in .env and run npm run dev to test. I will also change the associated line in sample.env. Thank you for testing this for me.

from personal-site.

mldangelo avatar mldangelo commented on August 28, 2024

@KaleabTessera I am in process of removing all login related components here: https://github.com/mldangelo/mldangelo/tree/remove-login How are you planning on hosting this? Please let me know if you would like me to deprecate the github api and lastfm calls as well so you can host without a server / with github pages.

from personal-site.

KaleabTessera avatar KaleabTessera commented on August 28, 2024

@mldangelo I am planning on hosting this through AWS, so please deprecate the github api and lastfm calls.

I really appreciate it!

from personal-site.

mldangelo avatar mldangelo commented on August 28, 2024

@KaleabTessera I removed the API calls and configured the branch so that you can host on github for free and deploy with gh-pages by running npm run deploy. This will package everything up and write everything to a branch called gh-pages. Note: You can choose to host however you wish. Running npm run build should package things up nicely for you and put things into a dist folder. I did a little extra work for you for gh-pages to automatically handle things like building, deploying, redirects and static routing.

You'll want to go to your repository settings at https://github.com/KaleabTessera/mldangelo/settings and configure things like this:

screen shot 2018-09-24 at 10 25 43 am

I would also recommend enabling https. Please let me know if this is sufficient, or if you need help with anything else.

from personal-site.

KaleabTessera avatar KaleabTessera commented on August 28, 2024

@mldangelo Thanks a lot Michael!

I will def have a look at using github pages, I have been using netify to auto deploy and host my builds for free but I will look into github pages.

Your a rockstar!

from personal-site.

Related Issues (20)

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.