Coder Social home page Coder Social logo

cs50seminar-meteor-react's Introduction

CS50 Seminar: Meteor.js + ReactJS

Requirements

  • Meteor.js (MongoDB and other packages will be installed automatically when you run meteor)

Preferable

Instructions

  1. git clone https://github.com/alan-xie/cs50seminar-meteor-react.git

  2. Meteor.js Installation

  • OSX
    • curl https://install.meteor.com/ | sh
  • Windows
  1. We need to install React dependencies that make our app work. In the cs50seminar-meteor-react directory, run this command in Terminal: meteor npm install --save react react-dom react-addons-pure-render-mixin react-addons-transition-group react-addons-css-transition-group react-addons-linked-state-mixin react-addons-create-fragment react-addons-update react-addons-test-utils react-addons-perf

  2. Run meteor inside the cs50seminar-meteor-react directory!

  3. Run mongorestore --host 127.0.0.1 --port 3001 --db meteor dump/meteor in the cs50seminar-meteor-react directory. If you receive an error, you may have to right-click each of your existing collections in Robomongo and select "Drop Collection." Then, rerun the mongorestore command.

Useful commands

  • meteor
    • In the Meteor app directory, runs the app
  • mongodump --host 127.0.0.1 --port 3001 --db meteor
    • While meteor is running, dumps the entire database into dump/meteor in the current directory
  • mongorestore --host 127.0.0.1 --port 3001 --db meteor dump/meteor
    • While meteor is running, restores a db from a dump in the format dump/meteor
  • mongoexport --host 127.0.0.1 --port 3001 --db meteor --collection titles --fields 'title,theatrical_release,domestic_gross,poster_url' --out titles.json
    • While meteor is running, exports the collection called titles with a specific subset of fields to titles.json
  • mongoimport --host 127.0.0.1 --port 3001 --db meteor --collection titles --file titles.json
    • While meteor is running, imports the file titles.json to the collection called titles

Useful reading

cs50seminar-meteor-react's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.