29 Commits

Author SHA1 Message Date
alex-phillips
bd39d59ee5 simplified migrations for now, added publicPage to users and tags to items 2020-02-17 07:58:24 -05:00
alex-phillips
6b35abd723 fixed non-underscored field 2020-02-17 07:35:33 -05:00
alex-phillips
052a2e62de removed tags - adding this just as a column to user 2020-02-16 17:20:28 -05:00
alex-phillips
35c4cc5b7e added applicationType and config to items, changed 'pinned' to 'active' 2020-02-16 12:26:19 -05:00
alex-phillips
16394e710b fixed typo 2020-02-16 12:08:06 -05:00
alex-phillips
44f6f75d03 added global settings 2020-02-16 11:47:34 -05:00
alex-phillips
71d038fe7b added user level column, limit level altering to admins only 2020-02-16 11:36:17 -05:00
alex-phillips
665a2bd50b initial commit of tags and associations with users / items 2020-02-16 10:47:57 -05:00
alex-phillips
db4211b3f6 CORS add credentials, conditionally set origin based on development flag 2020-02-15 18:37:38 -05:00
alex-phillips
5df2f89ea0 i guess we need to actually use the items router... 2020-02-15 15:33:13 -05:00
alex-phillips
11a9b2e487 check to make sure the user editing items own that item, added route to delete items 2020-02-15 15:32:27 -05:00
alex-phillips
a0873642dd fixed PUT method for editing items, pass ID in URL 2020-02-15 15:30:39 -05:00
alex-phillips
4ae0f4c3c1 login via username instead of email 2020-02-15 15:20:45 -05:00
alex-phillips
33452ea04b initial add of item routes 2020-02-15 15:13:43 -05:00
alex-phillips
e91de5dfed initial add of items, only use underscores for db columns, not actual object properties 2020-02-15 15:07:57 -05:00
alex-phillips
2111cb2193 added settings column to users (not doing additional migrations just yet since it's still early development) 2020-02-15 11:18:40 -05:00
alex-phillips
c4857003d6 server start now runs migration automatically 2020-02-15 11:18:17 -05:00
alex-phillips
9b051282ec be sure to sanitize all user data output from api 2020-02-15 10:23:35 -05:00
alex-phillips
e993262754 fixed deprecation notice 2020-02-15 10:17:00 -05:00
alex-phillips
074629028d user 'toJSON' method to remove sensitive data (i.e., password) 2020-02-15 09:14:50 -05:00
alex-phillips
059e988bcf fixed ping endpoint to return response based on auth status and user count 2020-02-15 07:25:17 -05:00
alex-phillips
202c203fcb run migrate with npx in case dev deps weren't installed 2020-02-15 07:24:56 -05:00
alex-phillips
2a11d7e4a9 eslinting 2020-02-15 06:57:08 -05:00
alex-phillips
6b9f9a6700 fixed invalid path to db moddels 2020-02-14 12:15:08 -05:00
alex-phillips
ff1c69289a Added endpoint for logging in and a 'ping' endpoint to check current login status 2020-02-14 12:14:13 -05:00
alex-phillips
1669c87fa3 changed npm run command for the server 2020-02-14 12:06:01 -05:00
alex-phillips
ad9726cba9 eslinting fixes, initial commit of express server with JWT auth, middleware for attaching user to request object, and cors implemented 2020-02-14 12:05:42 -05:00
alex-phillips
7bee88e383 initial commit of user code, added in test framework and user test 2020-02-14 10:02:18 -05:00
alex-phillips
cdf79a3bf8 initial commit 2020-02-13 08:50:29 -05:00