You will need the following things properly installed on your computer.
- Clone this repo:
git clone [email protected]:NYCPlanning/labs-waterfront-access.git - Navigate to the directory:
cd labs-waterfront-access - Install dependencies:
yarn - Start the server:
ember serve - Visit your app at http://localhost:4200.
- If the app fails to load, create an empty .env file in the root directory.
-
ESLint - We use ESLint with Airbnb's rules for JavaScript projects
- Add an ESLint plugin to your text editor to highlight broken rules while you code
- You can also run
eslintat the command line with the--fixflag to automatically fix some errors.
-
Testing
- run
ember test --serve - Before creating a Pull Request, make sure your branch is updated with the latest
developand passes all tests
- run
Images associated with each waterfront profile are stored in a Digital Ocean Space (Amazon S3 Equivalent): https://waterfront-access-photos.nyc3.digitaloceanspaces.com/. When a profile is loaded, the app does an API call to get the filenames of any images in the space that begin with the paws_id. When adding new images to the space, they should be prefixed with the paws_id, e.g 1010003-SouthStreetSeaportPier17Redevelopment.JPG
yarn lintyarn lint:fix
ember build(development)ember build --environment production(production)
Specify what it takes to deploy your app.