āāā build/ # Compiled output
āāā migrations/ # Database schema migration files
āāā node_modules/ # 3rd-party libraries and utilities
āāā public/ # Static files such as favicon.ico etc.
āāā scripts/ # Automation scripts (yarn update-schema etc.)
āāā src/ # Application source code
ā āāā admin/ # Admin section (Dashboard, User Management etc.)
ā āāā common/ # Shared React components and HOCs
ā āāā hooks/ # React.js hooks and Context providers
ā āāā icons/ # Icon components
ā āāā legal/ # Terms of Use, Privacy Policy, etc.
ā āāā misc/ # Other pages (about us, contacts, etc.)
ā āāā mutations/ # GraphQL mutations to be used on the client
ā āāā news/ # News section (example)
ā āāā server/ # Server-side code (API, authentication, etc.)
ā ā āāā mutations/ # GraphQL mutations
ā ā āāā queries/ # The top-level GraphQL query fields
ā ā āāā templates/ # HTML templates for server-side rendering
ā ā āāā types/ # GraphQL types: User, UserRole, UserIdentity etc.
ā ā āāā api.js # GraphQL API middleware
ā ā āāā app.js # Express.js application
ā ā āāā config.js # Configuration settings to be passed to the client
ā ā āāā context.js # GraphQL context wrapper
ā ā āāā db.js # PostgreSQL database client (Knex.js)
ā ā āāā relay.js # Relay factory method for Node.js environment
ā ā āāā index.js # Node.js app entry point
ā ā āāā login.js # Authentication middleware (e.g. /login/facebook)
ā ā āāā schema.js # GraphQL schema
ā ā āāā ssr.js # Server-side rendering, e.g. ReactDOMServer.renderToString(<App />)
ā āāā user/ # User pages (login, account settings, user profile, etc)
ā āāā utils/ # Utility functions
ā āāā relay.js # Relay factory method for browser environment
ā āāā index.js # Client-side entry point, e.g. ReactDOM.render(<App />, container)
ā āāā router.js # Universal application router
ā āāā serviceWorker.js # Service worker helper methods
ā āāā theme.js # Overrides for Material UI default styles
āāā ssl/ # SSL certificates for connecting to Cloud SQL instance
āāā .env # Environment variables for local development
āāā .env.production # Environment variables for the production build
āāā .env.test # Environment variables for the test build
āāā graphql.schema # GraphQL schema (auto-generated, used by Relay)
āāā package.json # The list of project dependencies + NPM scripts