dangerdak / chrappjs Goto Github PK
View Code? Open in Web Editor NEWChr(istmas) App: A secret santa app
Chr(istmas) App: A secret santa app
Should be in 'lib' rather than 'controllers'
display message to user if there's been an error/invalid input
Users should be able to logout
Set NODE_ENV environment variable to check which environment is running
e.g see this issue:
dangerdak/interstellar-soulmates#40
In https://github.com/dangerdak/chrappjs/blob/master/src/controllers/passwordModule.js passwords should be salted (use bcrypt) rather than just hashed using crypto
Should be able to reset database but also add in initial data for testing purposes
The app should have a home page - this could be the groups page, or a user dashboard with groups and wishlists or something...
add group detail component showing
Figure out how/where to close db connections
waterfall in tests?? promises?
Add ability to invite people to a group, and to email and accept invitations
partials/htmlHead.hbs
on all form pages:
Only show page if logged in
Backend validation
Site should be able to serve some pages.
Start with:
db_connection.js, db_build.js and db_build.sql
Users should be able to request to change their password if they've forgotten it
Warning: Failed prop type: The prop location.state
is marked as required in Login
, but its value is undefined
.
When logged in and visiting without being redirected there.
Should be able to:
Create error.hbs in views and layouts and use them to display error pages
eg https://github.com/foundersandcoders/express-handlebars-workshop/blob/solution/src/views/error.hbs
Groups should be editable by their owner once they've been created.
Include link from groups page to edit page for groups current user owns.
Currently date validation claims "Date must have format yyyy-mm-dd but you entered".
Separate each test into it's own file, and use test runners to link them up, like we did in https://github.com/FAC-11/AllAboutMe/tree/master/tests
Shouldnt be creating the same queryfile object multiple times (in backend.test and database.test.
Instead create both within db_build.js and export two functions using each sql file:
const path = require('path');
const dbConnection = require('./db_connection');
const { QueryFile } = require('pg-promise');
const seedFile = new QueryFile(path.join(__dirname, 'db_seed.sql'), { minify: true });
const buildFile = new QueryFile(path.join(__dirname, 'db_build.sql'), { minify: true });
const build = queryFile => dbConnection.any(queryFile)
.then(() => {
console.log('Database build successful.');
});
/* istanbul ignore if */
if (require.main === module) {
let file;
if (process.argv[2] === '--seed') {
file = seedFile;
} else {
file = buildFile;
}
build(file)
.catch(console.log);
}
module.exports = {
build: build.bind(null, buildFile),
seed: build.bind(null, seedFile),
};
Look into whether I can create my own middleware to make certain pages only viewable by logged in users
Instead of adding error messages to the context object being sent to handlebars templates. This is more versatile and allows messages to be added on redirect. FAC-11/AllAboutMe#108
To learn how.
Particularly in tests?
Linting isn't currently set up, set up eslint with airbnb guide and remove linting issues it finds.
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.