yhnavein / express-starter Goto Github PK
View Code? Open in Web Editor NEWIt's a hackathon-starter fork, but designed to use PostgreSQL by default (or MySQL)
License: MIT License
It's a hackathon-starter fork, but designed to use PostgreSQL by default (or MySQL)
License: MIT License
There are 2 things to be improved in this matter:
hi ,
i installed and configured but app ,return this error
500 Error: Invalid mapping: {"generated":{"line":487,"column":2},"source":"/Users/Amin/expg/public/css/vendor/bootstrap/type.less","original":{"line":1,"column":null},"name":null}
React front end, trying to post to the server side, however I get a Error: CSRF token missing
import Cookies from 'js-cookie';
....
const xsrfCookie = Cookies.get('XSRF-TOKEN');
const headers = new Headers({
'XSRF-TOKEN': xsrfCookie,
'_csrf': xsrfCookie,
});
console.log("formdata",formData)
const res = await fetch('/postAttempts', {
method: 'POST',
headers,
credentials: 'include',
body: JSON.stringify(formData),
})
From the controller
exports.postAttempts = function(req, res) {
console.log(req);
console.log(req.body);
res.json({data: 'hi'});
};
Am I incorrectly pulling the csrf token?
I updated the secrets file with my postgres credentials.
However, I get a warning when starting up the app. Any ideas? It works.
{ Error: ENOENT: no such file or directory, open '.env'
at Object.fs.openSync (fs.js:583:18)
at Object.fs.readFileSync (fs.js:490:33)
at Object.config (/Users/pavankatepalli/Desktop/git/node/mine/cryptofigure/node_modules/dotenv/lib/main.js:30:37)
at Object.<anonymous> (/Users/pavankatepalli/Desktop/git/node/mine/cryptofigure/app.js:7:19)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10) errno: -2, code: 'ENOENT', syscall: 'open', path: '.env' }
Hi, I'm just wondering if this project is still maintained? Thanks.
Well, first of all let me thank you for the work you done on this starter kit.
As front-end developer coming to back-end, the user management seemed like too complicated thing: user creation, login through FB, change password, verify by email. All this things are very difficult to get your head around.
I have a problem starting application.
Unhandled rejection SequelizeConnectionRefusedError: connect ECONNREFUSED 127.0.0.1:5432
This means that there is no database on this port. Problem is i cannot create db with this port config. And there seems to be nothing blocking port :5432, i checked as hard as i could.
How can i change it to :5433 or something else?
upon signing up with facebook, it forces a linkedin auth connection.
Basically it's doing both.
Just a one big task with list of all necessary improvements and fixes to be done before v1.0
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.