- Markdown
- Edit post (modal, fetch data via ajax)
- Photo upload
- salt password
azat-co / blog-express Goto Github PK
View Code? Open in Web Editor NEWExpress.js Blog App
Express.js Blog App
Hey there.
I'm learning nodejs, etc. I found your project and was wanting to use it as a learning resource, something to kinda take apart.
I got it all installed and running no prob, but need to log in. I see db/users.json, but the login/pass combo ([email protected] / 1) doesn't do it.
how would I go about getting logged in?
Thanks for any help.
Can I know which license type you are using ?
I am willing to use this as base in my nodeJS application.
Thanks
steps.
1.downloaded zip and extract
2. ran seed.sh modified as per below to make it work
mongoimport --db blog --collection users --file ./users.json --jsonArray
mongoimport --db blog --collection articles --file ./articles.json --jsonArray
5 click logout. got redirected to root and in console
ET /js/admin.js 304 2ms
GET /css/style.css 304 11ms
GET /css/bootstrap-3.0.2/fonts/glyphicons-halflings-regular.woff 304 1ms
starting step - handleLogout
...finished step
GET /logout 303 2ms
GET / 200 74ms - 1.34kb
GET /js/jquery-2.0.3.min.js 304 11ms
but still able to access admin page
possible issue might be
exports.logout = function(req, res, next) {
req.session = null;
res.redirect('/');
};
req.session=null; did not clear the session
Hi,
I'm quite new to node and was using your project to understand the workflow.
I do not know why i amm getting error of email/pw combination is correct.
Can you please help me out with that.?
When clicked on link it goes on http://162.243.216.116:3000/auth/twitter and shows and express errror
Express
500 [object Object]
Have to install something extra?
How to post the image in mongodb on post article page
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.