Get started:
mkdir hello-next
cd hello-next
npm init -y
npm install --save react react-dom next
mkdir pages
| # Grab the keys from Twitter Apps: https://apps.twitter.com/ | |
| CONSUMER_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
| CONSUMER_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
| ACCESS_TOKEN=xxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
| ACCESS_TOKEN_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
Get started:
mkdir hello-next
cd hello-next
npm init -y
npm install --save react react-dom next
mkdir pages
| // MONGO COMMAND LINE | |
| // start mongod | |
| ulimit -n 2048 && mongod | |
| // ctrl-c ends in same window, but can also use | |
| killall mongod | |
| // start mongod with data directory in another location | |
| mongod -dbpath /path/to/data/dir | |
| // open command line interface (mongo shell) | |
| mongo | |
| // restore a DB dump from a binary (BSON) dump file |