Comments (7)
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.
If you would like to disable oauth completely, you will need to remove passport.js To do this:
- remove
server/auth.js
- the associated calls in
server/server.js
- the calls to passport.js in
server/routes/index.js
- remove
server/models
- remove
server/routes/middleware.js
and associated calls inserver/routes/index.js
- the private and admin routes from
app/components/Routes/
and associated calls inapp/entry.js
- the admin page in
app/views/admin.js
- At this point, you might as well remove all references to mongo as well, and sessions.
- 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.
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.
@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.
@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.
@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.
@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:
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.
@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)
- Menu with yellow border on mobile HOT 3
- npm install fails. HOT 3
- PAGES FAILING FOR NEW PACKAGE.JSON HOT 1
- node-sass v4.14.1 incompatible with node 15+
- Making subpages HOT 2
- CSS not rendering
- Is there any way to add link to each project in the project page ??? HOT 2
- ESlint Error on Windows HOT 1
- Migrating from Google Analytics UA to GA4 HOT 1
- Suggestion: Blog/Journal pages HOT 1
- Deploying from a Fork to GH Pages with Workflow HOT 4
- Can't modify Michael's name in navigation bar HOT 1
- Bolder underline for hyperlinks HOT 1
- Deployment timing out HOT 5
- Contribution Instructions HOT 1
- Deployment Instructions HOT 1
- Minified React error #418; #423; in production build HOT 3
- npm build not working HOT 7
- Error -86 on npm run predeploy using react-snap with Puppeteer HOT 2
- Page is showing readme file HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from personal-site.