https://github.com/drewmoore/portfolio
https://github.com/drewmoore/portfolio
express mocha mongodb nodejs
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/drewmoore/portfolio
- Owner: drewmoore
- Created: 2014-07-06T22:55:48.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2018-09-19T05:10:18.000Z (over 7 years ago)
- Last Synced: 2025-08-21T12:41:51.364Z (10 months ago)
- Topics: express, mocha, mongodb, nodejs
- Language: JavaScript
- Size: 3.18 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
My Portfolio
============
The code behind my professional profile site.
---------------------------------------------
## Environment Variables
- run command `export PORTFOLIO_ENV=...`
- gitignored .env file with the following:
- `MAILGUN`: Mailgun API key
- `DBNAME`
## Get it Running
- `nvm install`
- `nvm use`
- `yarn install`
- `sudo mongod --fork --logpath /var/log/mongodb/mongod.log`
- `sudo systemctl enable redis-server`
- `sudo systemctl start redis-server`
- `echo '127.0.1.1 portfolio' | sudo tee --append /etc/hosts`
- `sudo cp ./deploy/portfolio.conf /etc/nginx/conf.d/`
- `sudo service nginx stop`
- `sudo service nginx start`
- `nvm exec npm start`
## NPM scripts
Preface with `nvm exec`