Skip to content

ArtemSerga/meteor-apollo-hello-world

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a 'Hello World' Meteor app using Apollo. It uses MySQL as the database and React as the UI framework.

Install MySQL

To run, first install MySQL. On OSX:

> brew install mysql

Start MySQL and create a database named apollodemo

> mysql.server start
> mysql -u root

mysql>  CREATE DATABASE apollodemo;

Run the app

First clone this repository, if you haven't already. Then run the app.

> meteor npm install
> meteor

You can view the app at http://localhost:3000/ or the built in graphiqql browser at http://localhot:3000/graphiql

Insert Records

The app creates the table posts in the apollodemo database but does not add any records. Do so now in the mysql CLI,

mysql> USE apollodemo;
mysql> insert into posts (content, views) values ("hello world", 5);

In your browser you should now see "Hello World" reactively display in the app.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 96.6%
  • HTML 2.6%
  • CSS 0.8%