├── .gitignore ├── README.md ├── backend ├── .editorconfig ├── .env.sample ├── .eslintrc ├── .gitignore ├── .graphqlconfig.yml ├── docker-compose.postgres.yml ├── docker-compose.yml ├── jest.config.js ├── package.json ├── src │ ├── config.js │ ├── constants.js │ ├── context.js │ ├── db-sequelize │ │ ├── category.js │ │ ├── index.js │ │ └── post.js │ ├── db │ │ ├── index.js │ │ └── user.js │ ├── directives.js │ ├── errors.js │ ├── index.js │ ├── middlewares.js │ ├── modules │ │ ├── directives.graphql │ │ ├── enums.graphql │ │ ├── error │ │ │ ├── resolvers.js │ │ │ └── schema.graphql │ │ ├── index.js │ │ ├── meta │ │ │ ├── resolvers.js │ │ │ └── schema.graphql │ │ ├── models.graphql │ │ └── user │ │ │ ├── resolvers.js │ │ │ └── schema.graphql │ ├── redis.js │ ├── routes │ │ ├── index.js │ │ └── user.js │ ├── server.js │ └── utils │ │ ├── email.js │ │ ├── middleware.js │ │ ├── middleware.test.js │ │ └── user.js └── tests │ ├── error.test.js │ ├── meta.test.js │ ├── mock.js │ ├── server.js │ ├── user.test.js │ └── validate-user.test.js ├── docs └── dashboard.png ├── frontend ├── .eslintrc.js ├── .gitignore ├── .storybook │ ├── config.js │ └── webpack.config.js ├── README.md ├── components │ ├── Container.js │ ├── Dashboard.js │ ├── Dashboard.scss │ ├── Error.js │ ├── Layout.js │ ├── LayoutContext.js │ ├── Message.js │ ├── Sidebar.js │ ├── Sidebar.scss │ └── Toolbar.js ├── lib │ ├── apollo.js │ ├── auth.js │ ├── config.js │ ├── icons.js │ ├── with-apollo.js │ └── with-auth.js ├── next.config.js ├── package.json ├── pages │ ├── _app.js │ ├── global.scss │ ├── login.js │ ├── meta.js │ ├── profile │ │ ├── change-password.js │ │ └── index.js │ ├── signup.js │ └── unauthorized.js ├── static │ └── readme.txt └── stories │ └── index.js └── package.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/README.md -------------------------------------------------------------------------------- /backend/.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/.editorconfig -------------------------------------------------------------------------------- /backend/.env.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/.env.sample -------------------------------------------------------------------------------- /backend/.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/.eslintrc -------------------------------------------------------------------------------- /backend/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/.gitignore -------------------------------------------------------------------------------- /backend/.graphqlconfig.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/.graphqlconfig.yml -------------------------------------------------------------------------------- /backend/docker-compose.postgres.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/docker-compose.postgres.yml -------------------------------------------------------------------------------- /backend/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/docker-compose.yml -------------------------------------------------------------------------------- /backend/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | testEnvironment: 'node', 3 | }; 4 | -------------------------------------------------------------------------------- /backend/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/package.json -------------------------------------------------------------------------------- /backend/src/config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/src/config.js -------------------------------------------------------------------------------- /backend/src/constants.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/src/constants.js -------------------------------------------------------------------------------- /backend/src/context.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/src/context.js -------------------------------------------------------------------------------- /backend/src/db-sequelize/category.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/src/db-sequelize/category.js -------------------------------------------------------------------------------- /backend/src/db-sequelize/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/src/db-sequelize/index.js -------------------------------------------------------------------------------- /backend/src/db-sequelize/post.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/src/db-sequelize/post.js -------------------------------------------------------------------------------- /backend/src/db/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/src/db/index.js -------------------------------------------------------------------------------- /backend/src/db/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/src/db/user.js -------------------------------------------------------------------------------- /backend/src/directives.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/src/directives.js -------------------------------------------------------------------------------- /backend/src/errors.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/src/errors.js -------------------------------------------------------------------------------- /backend/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/src/index.js -------------------------------------------------------------------------------- /backend/src/middlewares.js: -------------------------------------------------------------------------------- 1 | module.exports = []; 2 | -------------------------------------------------------------------------------- /backend/src/modules/directives.graphql: -------------------------------------------------------------------------------- 1 | directive @auth( 2 | roles: [Role] = [USER] 3 | ) on FIELD_DEFINITION 4 | -------------------------------------------------------------------------------- /backend/src/modules/enums.graphql: -------------------------------------------------------------------------------- 1 | scalar Date 2 | 3 | enum Role { 4 | ADMIN 5 | USER 6 | } 7 | -------------------------------------------------------------------------------- /backend/src/modules/error/resolvers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/src/modules/error/resolvers.js -------------------------------------------------------------------------------- /backend/src/modules/error/schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/src/modules/error/schema.graphql -------------------------------------------------------------------------------- /backend/src/modules/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/src/modules/index.js -------------------------------------------------------------------------------- /backend/src/modules/meta/resolvers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/src/modules/meta/resolvers.js -------------------------------------------------------------------------------- /backend/src/modules/meta/schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/src/modules/meta/schema.graphql -------------------------------------------------------------------------------- /backend/src/modules/models.graphql: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /backend/src/modules/user/resolvers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/src/modules/user/resolvers.js -------------------------------------------------------------------------------- /backend/src/modules/user/schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/src/modules/user/schema.graphql -------------------------------------------------------------------------------- /backend/src/redis.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/src/redis.js -------------------------------------------------------------------------------- /backend/src/routes/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/src/routes/index.js -------------------------------------------------------------------------------- /backend/src/routes/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/src/routes/user.js -------------------------------------------------------------------------------- /backend/src/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/src/server.js -------------------------------------------------------------------------------- /backend/src/utils/email.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/src/utils/email.js -------------------------------------------------------------------------------- /backend/src/utils/middleware.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/src/utils/middleware.js -------------------------------------------------------------------------------- /backend/src/utils/middleware.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/src/utils/middleware.test.js -------------------------------------------------------------------------------- /backend/src/utils/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/src/utils/user.js -------------------------------------------------------------------------------- /backend/tests/error.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/tests/error.test.js -------------------------------------------------------------------------------- /backend/tests/meta.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/tests/meta.test.js -------------------------------------------------------------------------------- /backend/tests/mock.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/tests/mock.js -------------------------------------------------------------------------------- /backend/tests/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/tests/server.js -------------------------------------------------------------------------------- /backend/tests/user.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/tests/user.test.js -------------------------------------------------------------------------------- /backend/tests/validate-user.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/backend/tests/validate-user.test.js -------------------------------------------------------------------------------- /docs/dashboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/docs/dashboard.png -------------------------------------------------------------------------------- /frontend/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/.eslintrc.js -------------------------------------------------------------------------------- /frontend/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/.gitignore -------------------------------------------------------------------------------- /frontend/.storybook/config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/.storybook/config.js -------------------------------------------------------------------------------- /frontend/.storybook/webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/.storybook/webpack.config.js -------------------------------------------------------------------------------- /frontend/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/README.md -------------------------------------------------------------------------------- /frontend/components/Container.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/components/Container.js -------------------------------------------------------------------------------- /frontend/components/Dashboard.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/components/Dashboard.js -------------------------------------------------------------------------------- /frontend/components/Dashboard.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/components/Dashboard.scss -------------------------------------------------------------------------------- /frontend/components/Error.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/components/Error.js -------------------------------------------------------------------------------- /frontend/components/Layout.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/components/Layout.js -------------------------------------------------------------------------------- /frontend/components/LayoutContext.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/components/LayoutContext.js -------------------------------------------------------------------------------- /frontend/components/Message.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/components/Message.js -------------------------------------------------------------------------------- /frontend/components/Sidebar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/components/Sidebar.js -------------------------------------------------------------------------------- /frontend/components/Sidebar.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/components/Sidebar.scss -------------------------------------------------------------------------------- /frontend/components/Toolbar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/components/Toolbar.js -------------------------------------------------------------------------------- /frontend/lib/apollo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/lib/apollo.js -------------------------------------------------------------------------------- /frontend/lib/auth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/lib/auth.js -------------------------------------------------------------------------------- /frontend/lib/config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/lib/config.js -------------------------------------------------------------------------------- /frontend/lib/icons.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/lib/icons.js -------------------------------------------------------------------------------- /frontend/lib/with-apollo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/lib/with-apollo.js -------------------------------------------------------------------------------- /frontend/lib/with-auth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/lib/with-auth.js -------------------------------------------------------------------------------- /frontend/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/next.config.js -------------------------------------------------------------------------------- /frontend/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/package.json -------------------------------------------------------------------------------- /frontend/pages/_app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/pages/_app.js -------------------------------------------------------------------------------- /frontend/pages/global.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/pages/global.scss -------------------------------------------------------------------------------- /frontend/pages/login.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/pages/login.js -------------------------------------------------------------------------------- /frontend/pages/meta.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/pages/meta.js -------------------------------------------------------------------------------- /frontend/pages/profile/change-password.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/pages/profile/change-password.js -------------------------------------------------------------------------------- /frontend/pages/profile/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/pages/profile/index.js -------------------------------------------------------------------------------- /frontend/pages/signup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/pages/signup.js -------------------------------------------------------------------------------- /frontend/pages/unauthorized.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/pages/unauthorized.js -------------------------------------------------------------------------------- /frontend/static/readme.txt: -------------------------------------------------------------------------------- 1 | static files go here 2 | -------------------------------------------------------------------------------- /frontend/stories/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/frontend/stories/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aboglioli/fullstack-graphql/HEAD/package.json --------------------------------------------------------------------------------