#WICit: Where to Shop with WIC
Check it out at findwic.com!
- Install node.js and NPM (Node Package Manager)
- Install grunt command-line on your machine:
sudo npm install -g grunt-cli
- Fork the repository and setup a local clone
- Move into your local wicit directory:
cd <yourdirectory>/wicit
- Copy the
.env.dist
file to a file called.env
- Navigate to https://www.mapbox.com/studio/
- Select Create a Style - leave all of the defaults
- Select Create
- Click the "< Basic" in the top left of the screen
- Click the Menu under the new style (default name is Basic) and select Share, develop, use
- Copy the Share URL and update the MAPBOX_INTEGRATION_URL parameter in the .env file
- Install server-side dependencies, build the app:
npm install
. You can build the app without installing dependencies usinggrunt build
- Start the server:
node app.js
- Try it out
- Install: Git
- Install: Node & NPM
- Install: Python 2.x.x
- Version 3 of Python is not supported by nodegyp so make sure to install version 2.x.x.
- Install: Visual Studio Community (with Update 4)
- Visual Studio Express for Windows Desktop should also work, but if you want a full IDE, go with the Community edition
- From a command prompt, install the Grunt Command Line Interface:
npm install -g grunt-cli
- Follow the OS X instructions above from step 4
- Setup the app using the relevant instructions above.
- From a new command prompt, start the build watcher to automatically build client-side JavaScript and CSS when JS and CSS files change:
grunt dev
. This task does not watch for server-side changes. For those, you'll need to restart the app server.
Wicit is ready to be deployed on Digital Ocean using Dokku (wicit doesn't use a database right now, so you don't have to worry about that part). Just be sure to use dokku config:set <appname> VAR=value
to add the settings present in your local .env
file to your deployment environment.
Connecting (you will need your ssh key on the droplet or find someone who has their ssh key on the droplet):
ssh root@<ip address>
Renew SSL Manually (it should auto-renew via cron, but to troubleshoot)
dokku letsencrypt:auto-renew
###License WICit is free software, and may be redistributed under the MIT-LICENSE.