react-express-seed
v0.0.4
Published
Primitive full-stack web application seed
Downloads
4
Readme
Description
Seed for a full-stack SPA webapp, showcasing ReactJS, react-router, Reflux, Record, browserify (client), Node+Express, MongoDB+Mongoose (server).
Installation
Requires the following CLI tools installed globally:
npm
gulp
mongod # MongoDB
ln # shell
mkdir # shell
Clone the repo, then run npm install
to get the dependencies. This should also create a soft symbolic link of ./app
in ./node_modules
and an empty directory ./mongo-data
in ./
. If this fails for some reason, or if you happen to be using Windows, do it manually. See the postintall script in package.json
.
Usage
Install Node.js and MongoDB, if you haven't already.
If you don't have gulp installed globally, run
npm install -g gulp
(may need to prefix the command withsudo
).cd
into the project directory.Make sure you don't have an active
mongod
process running locally. Runnpm run db
to create the database and Ctrl+C to stop it.Run
npm run dev
(ornpm run db
,gulp
andnpm start
in three Terminal tabs) and start fooling around with the source and the webpage.