All Projects → JustFixNYC → tenants

JustFixNYC / tenants

Licence: GPL-3.0 license
JustFix.nyc is a tool to document, organize, and take action in getting repairs made on your apartment.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to tenants

nyc-crash-mapper
React Redux web application for viewing, filtering, & comparing trends of automobile collision data published by the NYPD.
Stars: ✭ 15 (+0%)
Mutual labels:  nyc, civictech, civic-tech
ACCESS-NYC-PATTERNS
ACCESS NYC Pattern library and design system documentation for https://access.nyc.gov. Maintained by @NYCOpportunity
Stars: ✭ 14 (-6.67%)
Mutual labels:  nyc, civictech, civic-tech
nodeJS examples
Server, routing, db examples using NodeJS v6
Stars: ✭ 34 (+126.67%)
Mutual labels:  mean, mean-stack
o-fish-android
Android app for the Officer's Fishery Information Sharing Hub (O-FISH). The mobile app allows fisheries officers to document and share critical information gathered during a routine vessel inspection.
Stars: ✭ 19 (+26.67%)
Mutual labels:  nonprofit, non-profit
MEAN-stack-authentication
MEAN stack authentication boilerplate with Angular 5 and Angular Material
Stars: ✭ 29 (+93.33%)
Mutual labels:  mean, mean-stack
o-fish-realm
Realm application code and sample data for the Officer's Fishery Information Sharing Hub (O-FISH). The mobile app allows fisheries officers to document and share critical information gathered during a routine vessel inspection. The web app allows agencies to gain insights from the aggregated information.
Stars: ✭ 23 (+53.33%)
Mutual labels:  nonprofit, non-profit
o-fish-web
Web application for the Officer's Fishery Information Sharing Hub (O-FISH). The web app allows agencies to gain insights from the aggregated information gathered during a routine vessel inspection (submitted via the web app).
Stars: ✭ 29 (+93.33%)
Mutual labels:  nonprofit, non-profit
express-mvc
A light-weight mvc pattern for express framework with minimum dependencies
Stars: ✭ 23 (+53.33%)
Mutual labels:  mean, mean-stack
mean-stack
MEAN stack Mongoose, Express, Angular6, Node
Stars: ✭ 22 (+46.67%)
Mutual labels:  mean-stack, meanstack
learn-how-to-build-a-mean-stack-application
The goal of this tutorial is to guide you through the coding of a full-stack JavaScript example application project and connecting a backend API to an Angular 5 front-end application employing the MEAN stack.
Stars: ✭ 55 (+266.67%)
Mutual labels:  mean-stack, meanstack
ACCESS-NYC
Find help in NYC with food, money, housing, work, and more on ACCESS NYC. Maintained by @NYCOpportunity
Stars: ✭ 27 (+80%)
Mutual labels:  nyc, civic-tech
o-fish-ios
iOS app for the Officer's Fishery Information Sharing Hub (O-FISH). The mobile app allows fisheries officers to document and share critical information gathered during a routine vessel inspection.
Stars: ✭ 28 (+86.67%)
Mutual labels:  nonprofit, non-profit
asset-declarations
Crowd sourcing implementation of Moonsheep platform for Romanian asset declarations.
Stars: ✭ 13 (-13.33%)
Mutual labels:  civictech, civic-tech
who-owns-what
Who owns what in nyc?
Stars: ✭ 146 (+873.33%)
Mutual labels:  civictech, civic-tech
theweekendest
Real-time New York City subway service map
Stars: ✭ 51 (+240%)
Mutual labels:  nyc
teammanager
Small team manager written in MEAN stack
Stars: ✭ 30 (+100%)
Mutual labels:  meanstack
CampaignFinance
NC Campaign Finance Dashboard. Making NC Campaign Funds visible to all citizens
Stars: ✭ 36 (+140%)
Mutual labels:  civic-tech
covid-19-date-la-zi
Vizualization App to track the COVID-19 epidemic
Stars: ✭ 40 (+166.67%)
Mutual labels:  civic-tech
currency-api
A demo project on how to test a node/express app with Mocha, Nock and proxyquire (MNP) and code coverage with nyc/istanbul.
Stars: ✭ 19 (+26.67%)
Mutual labels:  nyc
platform
Community platform for dancers
Stars: ✭ 30 (+100%)
Mutual labels:  non-profit

This is the codebase for the JustFix.nyc platform, including the Tenant Webapp, Advocate Dashboard, and the back-end API for managing data. For more information about our organization, please visit www.justfix.nyc.

Getting Started

This guide assumes that you are using a UNIX system (most likely macOS), but everything is available on Windows if you follow the appropriate guides thru the links below.

There are two ways to get started. Both require a bit of common setup.

Common setup

  1. Get a copy of the code!
git clone https://github.com/JustFixNYC/tenants.git
  1. You should have a development.js copy from me. (If not, email me at [email protected]). Place that file in config/env.

Now you have the option to set up and run everything locally, or use Docker.

Option 1: Run everything locally

Build tools and languages

  1. Open terminal. Some of these steps may require sudo in order to install.

  2. Install Node.js (v4.4.x is ideal) and make sure everything works:

node -v
  1. Update npm and make sure everything works:
npm install -g npm@latest
npm -v
  1. Download and install MongoDB. Make sure that it runs on the default port (27017)

  2. Use npm to install bower and grunt. You'll probably need sudo for this (using -g affects your machine globally).

sudo npm install -g bower grunt-cli
  1. Set up git if you don't already have it.

  2. Set up Ruby and Sass to compile CSS. See here for instructions.

Download and install libraries

Use npm to install the needed back-end and buildtool libraries. It should trigger a bower install for front-end dependencies automatically. Make sure you're in the root directory for the project - i.e. the same level as the package.json file.

npm install

Start everything up

  1. To start, you'll need an active mongodb instance running. I like to do this in a folder within app - e.g. app/mongodb but it can be run globally or anywhere else.
mongod --dbpath . &

Open a new terminal window and make sure it's running:

ps aux | grep mongo

You should see the process running, as well as the grep mongo command process you just ran. Ex:

dan@Dans-MacBook tenants (master) $ ps aux | grep mongo
dan               4072   0.3  0.0  2583596   6272   ??  S    16Feb17  48:14.37 mongod --dbpath .
dan              24473   0.0  0.0  2444056    796 s001  S+    4:26PM   0:00.01 grep mongo
  1. After that, it should be quite simple to start the app (again, make sure this is from the root directory):
grunt

Set environment variables

Set the MONGODB_TEST_URI environment variable to point to a test database that will be wiped every time the test suite is run, e.g.:

export MONGODB_TEST_URI=mongodb://localhost:27017/unittests

Option 2: Use Docker

  1. Download Docker Community Edition.

  2. Run bash docker-update.sh.

    Note that in the future, you'll want to run this whenever you update the repository or switch branches, too, to make sure you have all the latest dependencies.

  3. Run docker-compose up.

Visit your local server

Now that you've got everything up and running, go to http://localhost:3000 to see your development version! Grunt will watch for any changes you make to the code and automatically restart the server for live development.

Tips on using Docker

If you decided to go the Docker route but aren't very familiar with Docker, here are some tips.

Running command-line tools

If you ever want to run an individual command-line tool on the project, such as a specific grunt task or linter, you can dive into your Docker's main web container by running:

docker-compose run web bash

You will be in the container's /tenants directory, which maps to the root of your repository on your local machine.

Alternatively, you can run individual commands just by running docker-compose run web <command name>. Some people do this so often that they create a shell alias called dcr that's short for docker-compose run.

Uninstalling or starting from scratch

If you ever get your Docker setup into a weird state where nothing works, or if you're done with the project and want to free all resources used by Docker, run docker-compose down -v.

You'll then need to re-run bash docker-update.sh set everything up again.

Running the test suite

To run the test suite, run:

npm test

More Questions

Check out MEAN.JS - will have more tutorials on the architecture setup and things for troubleshooting.

License

JustFix.nyc uses the GNU General Public License v3.0 Open-Source License. See LICENSE.md file for the full text.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].