• Stars
    star
    1,683
  • Rank 26,583 (Top 0.6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 7 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Apollo Universal Starter Kit is a SEO-friendly, fully-configured, modular starter application that helps developers to streamline web, server, and mobile development with cutting-edge technologies and ultimate code reuse.

Apollo Universal Starter Kit

Backers on Open Collective Sponsors on Open Collective Join the chat at https://gitter.im/sysgears/apollo-fullstack-starter-kit Build Status code style: prettier Twitter Follow

Use our chat to get help or discuss general topics about Apollo Universal Starter Kit.

Official Website

Visit apollokit.org to learn about Apollo Universal Starter Kit. You can also test a demo application deployed on Render.

Description

Apollo Universal Starter Kit is an SEO-friendly, fully configured, modular starter project for developing Universal JavaScript applications. You can use this kit to create your applications in JavaScript or TypeScript for all major platforms – mobile, web, and server.

Apollo Universal Starter Kit is built with Apollo, GraphQL, React, Angular, React Native, Expo, Knex.js, and Express with support for relational databases such as PostgreSQL, MySQL, and SQLite.

TypeScript is our language of choice and we use it across the entire project. However, you can freely mix vanilla JavaScript (the ES6 and ES7 syntax) and TypeScript when creating your modules.

The starter kit also integrates Twitter Bootstrap, Ant Design, and NativeBase to provide great possibilities for styling for your web and mobile applications.

Table of Contents

Overview

Why Use Apollo Universal Starter Kit

I am a Developer

  • Great productivity thanks to live reload and (partial) hot code reload
  • Fractal modular architecture that's easy to support and extend
  • The possibility to create modules in TypeScript and JavaScript at the same time
  • No need to develop typical features for your applications

I am a Project Manager

  • Your application will work faster thanks to GraphQL
  • Your team will be able to reuse the code for all the platforms
  • Your team can create client, server, and mobile JavaScript applications
  • Your application will be easier to support and evolve thanks to the fractal modular architecture
  • Your application will be based on a widely-used JavaScript ecosystem (it's easy to find JS developers)
  • Your team can develop new features straightaway instead of creating the basic features
  • Your application will be integrated with Stripe, one of the top payment processors

Concept

Developing client-server-mobile projects in JavaScript never was a trivial task. Not only do you have to spend time installing the application dependencies and configuring them, but you're also constrained to implement many basic functionalities over and over again. And you never have time to develop a starter codebase that you can reuse across all of your projects.

To relieve you from the burden of configuring the project, developing the application structure, and implementing typical features, we created Apollo Universal Starter Kit.

Apollo Universal Starter Kit provides you with a client-server-mobile application that you can employ as a foundation for developing new web or mobile projects using popular tools from the JavaScript ecosystem. But our starter kit does so much more than just creating a mix of popular JS technologies β€” it's powered by a few custom libraries and solutions to simplify managing project configurations, creating new modules, building GraphQL queries, and perform many other tasks.

The starter kit also consists of many modules that you can augment and adapt to develop your specific application. Also, you can use those prebuilt modules as a reference when implementing basic features for your applications even if you create them using other technologies.

Architecture and Implemented Modules

Among all the approaches to building the application architecture, we opt for the disposable fractal-based modular architecture. Thanks to it, it's possible to remove any built-in module from Apollo Universal Starter Kit without breaking the application. We recommend that you develop your custom modules with the same idea in mind when using our starter kit.

Apollo Universal Starter Kit comes with the following modules:

  • Authentication. Authentication via social networks (Facebook, GitHub, LinkedIn, and Google using OAuth) and password-based authentication; refreshing a forgotten password
  • Authorization. Permission-based authorization with various user roles
  • Contact Us Form. Functionality to send messages to the server
  • Internationalization. A complete internationalization solution for the client and server
  • Mobile Chat. A live chat based on the React Native Gifted Chat and powered by GraphQL subscriptions
  • Pagination. Navigation between pages and presentation of entities
  • Payments. Functionality for recurring payments based on Stripe
  • Posts and Comments. Functionality to add, delete, and update posts and comments
  • State Management. The application state stored in the database and on the client using different approaches
  • 404 Not Found Page. A minimalistic module for handling 404 requests

If you don't want to use the pre-built modules in your project, you can remove them using a dedicated CLI. For module names, see the names of directories under modules.

To learn more about the features and modules available in Apollo Universal Starter Kit, follow to the dedicated section Features and Modules.

Demo

Here's a demo of Apollo Universal Starter Kit in action:

screencast

You can try out the latest version of Apollo Universal Starter Kit deployed on Render. If you want to see the mobile React Native application in action, check out this demo on Expo.io.

Branches

Branch Description
stable The latest stable version of the kit (recommended)
master The kit version with the latest features. May not work consistently
single A single-package Apollo v2 version of the kit
apollo1 The Apollo v1 version of the kit
cli-crud This kit version features a CLI to generate CRUD implementations

First Run of Apollo Universal Starter Kit

Verify if you use Node.js 6.x or higher (Node.js ^10 is recommended) before running the starter kit.

  1. Clone the stable branch of Apollo Universal Starter Kit.
git clone -b stable https://github.com/sysgears/apollo-universal-starter-kit.git
cd apollo-universal-starter-kit

NOTE: The master branch is not recommended for development. Use it at your own risk.

NOTE: If you're going to use Windows to develop with Apollo Universal Starter Kit, you need to additionally enable symlinks before you run the project.

For Windows 10:

  • Press Win + I to open Settings
  • Click Update & Security
  • Click the For Developers tab
  • In the Use developer features window, switch to Developer Mode

NOTE: You can remove the unnecessary stacks from Apollo Universal Starter Kit by using the CLI. Consult a respective CLI section. Alternatively, you can use the capabilities of your operating system. For example, by running the command below, you can remove all Scala server files:

find . -name server-scala | xargs rm -rf

If you don't need the ready-made modules, you can also remove them using the custom CLI.

  1. Install the dependencies. Make sure that you use Yarn 1.0.0 or higher.
yarn

You can use NPM instead of Yarn to handle the starter kit dependencies and to run scripts. Throughout the Apollo Universal Starter Kit documentation, we'll always use Yarn.

  1. Seed sample data to the database. The command below will create new tables with sample data in SQLite:
yarn seed

SQLite is a typical default relational database installed in most Linux distributions including Mac OS X; otherwise, consult SQLite installation guide.

  1. Run the starter kit in development mode:
yarn watch

The server application will be running on http://localhost:3000, while the client application will be running on http://localhost:8080. The terminal will tell your the exact ports.

For more information about running this starter kit for mobile development or Docker, consult the Getting Started guide.

Project Structure

The project structure presents generally accepted guidelines and patterns for building scalable web and mobile applications.

The structure is fractal meaning the available functionality is grouped primarily by feature rather than by file type. But the current structure isn't prescriptive, and you can change it however you like.

apollo-universal-starter-kit
β”œβ”€β”€ config                      # Various application configurations
β”œβ”€β”€ docs                        # Documentation
β”œβ”€β”€ node_modules                # Global Node.js modules
β”œβ”€β”€ modules                     # All the prebuilt project modules
β”œβ”€β”€ packages                    # Available packages
β”‚   β”œβ”€β”€ client                  # React client
β”‚   β”œβ”€β”€ client-angular          # Angular client
β”‚   β”œβ”€β”€ client-vue              # Vue client
β”‚   β”œβ”€β”€ common                  # Common code
β”‚   β”œβ”€β”€ mobile                  # React Native mobile client
β”‚   β”œβ”€β”€ server                  # Node.js and Express server
β”‚   └── server-scala            # Scala server
└── tools                       # All build and CLI-related files

Inside modules, you'll find all the prebuilt modules that Apollo Universal Starter Kit comes with. Each module under modules contains sub-directories with module implementations for different technologies. For example, if you look up the module modules/core, you'll see the following sub-modules:

apollo-universal-starter-kit
β”œβ”€β”€ modules                       # Available packages
β”‚   β”œβ”€β”€ core                      # The core module
β”‚       β”œβ”€β”€ client-angular        # Core functionality for Angular app
β”‚       β”œβ”€β”€ client-react          # Core functionality for React app
β”‚       β”œβ”€β”€ client-react-native   # Core functionality for React Native app
β”‚       β”œβ”€β”€ client-vue            # Core functionality for Vue app
β”‚       β”œβ”€β”€ common                # React Native mobile client
β”‚       β”œβ”€β”€ server-scala          # Core functionality for Scala server
β”‚       └── server-ts             # Core functionality for Express server
└── tools                         # All build and CLI-related files

Apollo Universal Starter Kit Documentation

Follow to the documentation concerning different aspects of how to run, configure, and develop with Apollo Universal Starter Kit.

Tools

Modules

Support

Community Support

  • Gitter channel – ask questions, find answers, and participate in general discussions
  • GitHub issues – submit issues and send feature requests
  • Wiki – read documentation for the usage scenarios of the starter kit; edit the documentation
  • FAQ – consult the Frequently Asked Questions section

Commercial Support

The SysGears team provides comprehensive support for commercial partners. Our team can guide you when you're using Apollo Universal Starter Kit to build your application.

You can contact us via Skype or email [email protected].

Contributors

Thanks a lot to all the wonderful people who contributed to Apollo Universal Starter Kit!

Backers

Thanks a lot to all our backers!

Sponsors

You can support this project by becoming a sponsor! Your logo will show up here with a link to your website.

License

Copyright Β© 2016-2019 SysGears (Cyprus) Limited. This source code is licensed under the MIT license.

More Repositories

1

webpack-virtual-modules

Webpack Virtual Modules is a webpack plugin that lets you create, modify, and delete in-memory files in a way that webpack treats them as if they were physically presented in the file system.
TypeScript
494
star
2

mochapack

Mocha test runner with integrated webpack precompiler
TypeScript
184
star
3

grain

Grain is a lightweight and powerful static website generator with custom themes to help create static, SEO-friendly websites or a blog in no time.
Groovy
157
star
4

create-apollo-app

Create Apollo App is a command-line tool designed to generate fully-configured starter Apollo GraphQL projects with essential dependencies for developing web, server and mobile applications and zero build configuration.
TypeScript
119
star
5

spinjs

SpinJS is now Zen! The project has been renamed and moved to Larix Framework.
TypeScript
43
star
6

selenium-automation-bundle

Selenium Automation Bundle is an extendable and adaptable solution that simplifies automated testing to help focus on writing tests with Selenide and TestNG using the best test design patterns.
Groovy
39
star
7

persistgraphql-webpack-plugin

PersistGraphQL Webpack Plugin
JavaScript
37
star
8

react-apollo-express-example

Example of Express, React, and Apollo application. Let's have a look on our blog to read in-depth tutorial on how to create your own! https://sysgears.com/articles/how-to-create-an-apollo-react-express-application/
JavaScript
25
star
9

domain-schema

Domain Driven Design Schema for JavaScript
JavaScript
22
star
10

apollo-logger

Apollo GraphQL Logger
TypeScript
19
star
11

pinyarn

pins Yarn to a specific version and downloads it automatically on demand
JavaScript
16
star
12

larix

Larix Meta Framework - a polyglot ecosystem for creating modular software with trivially addable and removable feature modules
TypeScript
15
star
13

grain-theme-portfolio

Grain Bootstrap Theme Stylish Portfolio
CSS
14
star
14

grain-theme-octopress

Octopress Grain Theme
CSS
13
star
15

scala-graphql-api-example

Scala
13
star
16

grain-theme-template

Template for new Grain themes
Groovy
12
star
17

java-berkleydb-queue

Lightweight fast persistent queue in Java using Berkley DB
Java
12
star
18

grain-theme-freelancer

Grain Bootstrap Theme Freelancer
CSS
11
star
19

grain-theme-agency

Grain Bootstrap Theme Agency
CSS
11
star
20

akka-spark-pipeline

An example project that implements a data pipeline using Scala, Akka, and Spark and works with document-oriented and graph databases to let you find out how frequently a specific technology is used with different technology stacks.
Scala
11
star
21

grain-theme-business

HTML
9
star
22

glace-dynamic-web-flow

Glace Dynamic Web Flow plugin
Groovy
9
star
23

scala-akka-graphql-kit

Scala starter kit for GraphQL applications
Scala
8
star
24

react-infinite-scroll-example

In your React application, you may need to implement infinite scroll pagination with Apollo. Here it is an example. And we explain how you can achieve this in your application using `apollo-link-state` in this publication: https://sysgears.com/articles/how-to-create-an-apollo-react-express-application/
JavaScript
8
star
25

glace-dynamic-web-flow-showcase

Glace Dynamic Web Flow plugin showcase
Groovy
7
star
26

grain-gradle-plugin

Gradle plugin for Grain
Groovy
7
star
27

apollo-cache-router

Apollo GraphQL Cache Router
TypeScript
7
star
28

apollo-cache-logger

Apollo Cache Logger
TypeScript
6
star
29

auth-with-play-silhouette-example

Scala
5
star
30

graphql-java-starter-kit

GraphQL Java Starter Kit β€” GraphQL Java app boilerplate for Server with React JavaScript code for Mobile and Web, stack: Java, Spring, Apollo, GraphQL, React 16, React Native, Expo, Express, SQLite, Twitter Bootstrap, Babel, Webpack
JavaScript
5
star
31

scala-spark-test-utils

5
star
32

scala-graphql-error-handling-example

Scala
4
star
33

graphql-codegen-webpack-plugin

Webpack Plugin for graphql-code-generator
TypeScript
4
star
34

grain-theme-clean-blog

Grain Bootstrap Theme Clean Blog
CSS
2
star
35

scala-graphql-subscriptions-on-websockets

Scala
2
star
36

amplify-app

Toolkit to create AWS Amplify apps even faster
TypeScript
2
star
37

restapp

RestApp is an SEO-friendly, fully-configured, modular starter application that helps developers to streamline web, server, and mobile development with cutting-edge technologies and ultimate code reuse.
JavaScript
2
star
38

fractal-objects

Fractal Objects - self-similar objects that can be multiplied together and the result will be a fractal object and have the same type and shape as multiplicands.
TypeScript
2
star
39

node-hmr-plugin

Webpack plugin for running node process in development mode with HMR
JavaScript
1
star
40

hoister

General purpose node_modules hoister
TypeScript
1
star
41

react-router-redux

JavaScript
1
star
42

scala-tapir-akka-http-example

Scala
1
star
43

grain-theme-sphinx

Grain Sphinx Theme
JavaScript
1
star