Skip to content

Clarkbaum/project-pretzel

 
 

Repository files navigation

pretzel

Greenfield Project for HackReactor

how to start

(not used anymore)

$ npm install
$ npm start

how to test

$ npm test

how to continuely complile when file changes

(not used anymore)

(we using this again for development)

$ babel . --out-dir src/static/compiled --presets=es2015,react --ignore=node_modules,compiled,server,spec,babel_cache,webpack.config.js,src/static --source-maps inline -w


#### use webpack instead of babel command
```shell
$ NODE_ENV=production node_modules/.bin/webpack --progress --watch

used to run the server

$ NODE_ENV=production node_modules/.bin/babel-node --presets react,es2015 src/server.js

steps to get nathan's updates working

npm install --save-dev webpack [email protected] [email protected]

###steps to get mysql working

brew install mysql

mysql.server stop (make sure you dont have one running)
mysql.server start
mysql -u root -p (blank password)

CREATE TABLE users (ID int NOT NULL, googleID VARCHAR(25), name VARCHAR(25), email VARCHAR(25), img TEXT, PRIMARY KEY (ID));

CREATE TABLE messages (ID int NOT NULL, userID int NOT NULL, text TEXT, time DATETIME, PRIMARY KEY (ID), FOREIGN KEY (userID) REFERENCES users(ID));

(schema.sql should do this for you, will end up removing these steps probably)

mysql -u root < src/schema.sql (runs sql file)

About

Greenfield Project for HackReactor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.8%
  • Other 0.2%