Front End server for Colandr API.
You will need nodejs and npm to get started. I'd also recommend installing the n package so that you can manage node versions. To run this repo, you'l need Node 6.x.x.
- Fork and then clone this repository.
- Run
npm installin the newly created folder. - Run
npm install --global gulpanywhere. - Update the
.env.samplefile with the appropriate values and then rename as.env. - Run
gulp.
Note: Gulp will run a linter, process
.scssfiles, and start a server. You must at least rungulponce in order for the application to work. If you only want to run the server afterwards, you may run:
gulp nodemonYou will be able to access the front end application on port 3000 by default.
Currently, the app uses the environment variables in .env to keep you logged in if you're running on development. If you'd like to log in as normal, find the nodemonConfig inside of ./gulpfile.js:
const nodemonConfig = {
script: paths.server,
ext: 'html js css scss',
ignore: ['node_modules'],
env: {
NODE_ENV: 'development'
}
}Change that NODE_ENV value to anything else but development.