• Stars
    star
    133
  • Rank 271,966 (Top 6 %)
  • Language
    JavaScript
  • Created about 7 years ago
  • Updated over 1 year ago

Reviews

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

Repository Details

Create React App with MobX State Tree, Styled Components and GraphQL

React + MobX State Tree & GraphQL Logo

About React + MobX State Tree & GraphQL

This project was initially built as a personal project to create my own website (https://alexvcasillas.com) to test the latest features of the awesome MobX State Tree and GraphQL. The React part of this project is based on the latest Create React App stable release (check their docs for further knowledge).

Purpose

The purpose of this project is only intended for learning. It's not intended to be a commercial product or any other related kind of stuff. This is Open Source so you should feel free to use it and modify it as you wanted. In fact, I encourage you to modify the structure or how I do things to fit your needs and the way you handle things, just set it to be comfortable to you.

How To

If you want to try this project the first thing you have to do is to clone this repository. How? Just go to your favourite terminal and execute the following command (assuming that you previously have git installed): git clone https://github.com/alexvcasillas/react-mobx-state-tree.git. By doing so, you'll have the repository cloned in your computer. The next step is to move inside by typing cd react-mobx-state-tree. Alright, we're in now! You can't run it at this point because you have no dependencies installed so, we need to start with that, run the following command: npm install or if you're a yarn user just yarn. This might take a while because it's downloading all the minimum requirements as local dependencies so you can run this project (they're just a few). When it's done, you're good to go, simply run the following command npm start or if you're a yarn user yarn start and you will see the development build process and when everything is done, your browser will open a new window/tab with this project up and running.

If you want your Github profile to fill this project, you need to generate a Github's Personal Access Token (PAT) and go to src/utils/graphql.js - line 10 and replace const githubToken = 'your_token_here'; the content within single quotes with your Personal Access Token (PAT). Then just make the build and deploy it somewhere or just run it as development.

You can customize everything with Styled Components!

TLDR: How To

  1. git clone https://github.com/alexvcasillas/react-mobx-state-tree.git
  2. cd react-mobx-state-tree
  3. npm install or yarn
  4. npm start or yarn start

Production Builds

Because this project is based on Create React App, you have all the CRA available commands and the build process is delegated to them. Simply run npm run build or yarn build and the build process will being and, at the end of it, you'll have a dist folder with your SPA ready to be deployed as a static website at any host.

Built with

This project is being used in:

https://alexvcasillas.com

Contributions

I'm always looking to improve this project so, if you feel like you can contribute to it to improve any of it's features, just fork it and make a proper Pull Request. I'll be so glad to check it with you and merge it into the master project.

Credits

I want to thank the following people and organizations for creating all that this project is based on:

Michel Weststrate for the incredible job creating MobX and MobX State Tree.

Mattia Manzati for it's support with everything related to MobX State Tree.

Max Stoiber for it's awesome Styled Components ๐Ÿ’…

Dan Abramov for creating Create React App (also all of the contributors to it!)

Apollo GraphQL Team for their awesome contribution with Apollo Client.

More Repositories

1

animated-styled-components

React Animated Styled Components
JavaScript
141
star
2

react-mobx-router

Create React App with React Router 4 and MobX + Internationalization
JavaScript
89
star
3

react-onboarding

Onboarding library for React
TypeScript
34
star
4

react-mobx-router-electron

React Create App with React Router and MobX and Internationalization and Electron
JavaScript
22
star
5

react-spring-pop

Animate React elements when they enter the viewport with physics based animations
TypeScript
18
star
6

react-forum-system

React Forum System
JavaScript
16
star
7

cratebox

A global, fast content delivery network for NPM
TypeScript
15
star
8

react-native-loading-dots

A React Native loading component with dots or custom components and a smooth animation
13
star
9

reactron

Build Desktop Applications with React and Electron
JavaScript
6
star
10

cratebox-react

React bindings for Cratebox
TypeScript
4
star
11

graphdb

An in memory database with sync capabilities
TypeScript
3
star
12

use-observer

React Intersection Observer implementation done right!
TypeScript
2
star
13

screen-corsair

Navigation for React Native
JavaScript
2
star
14

fib-o

A cached fibonacci implementation
JavaScript
2
star
15

react-spotify

Spotify Web Client built with React
JavaScript
1
star
16

learning-rust

A repository containing all my Rust language training
Rust
1
star
17

onboarding-demo

This repo contains a demo for @reactive-labs/onboarding library
JavaScript
1
star
18

gatsby-sass-modules

This repository is to showcase the bug that happens in Gatsby when trying to use sass with CSS Modules
CSS
1
star
19

react-native-undetermined-progress

Undetermined Progress Bar component for your React Native application
1
star
20

erat-o

Eratosthenes primality test implementation
JavaScript
1
star
21

alexvcasillas

โœจspecial โœจ
1
star
22

alexvcasillas.com

Alex Casillas' Personal Website
JavaScript
1
star
23

grapher

User Interface Library
1
star
24

fact-o

A factorial implementation
JavaScript
1
star
25

Google-Fonts-JSON-to-Google-Font-Format

Convert a Google Fonts list on format JSON to a Google Fonts official valid format.
JavaScript
1
star
26

cratebox.io-docs

Cratebox.io documentation website
JavaScript
1
star
27

workchitecture

Worker based architectured that separates UI, state and other operations with Web Workers
JavaScript
1
star