Skip to content

Latest commit

 

History

History
63 lines (39 loc) · 4.01 KB

README.md

File metadata and controls

63 lines (39 loc) · 4.01 KB

Angular Lightning Slider

Build Status Dependency Status devDependency Status GitHub version Join the chat at https://gitter.im/Angular-Lightning-Slider/Lobby Known Vulnerabilities

Prerequisite

  1. NodeJS (>=8.9.4 or greater) https://nodejs.org/en/
  2. Angular CLI (>=1.6.7 or greater) https://cli.angular.io/
  3. TypeScript (>= 2.4.2) https://www.typescriptlang.org/docs/handbook/typescript-in-5-minutes.html

QUICK START

  1. Download source code
  2. Open terminal in the folder where you've downloaded the app
  3. Run npm run install-client-and-server from your terminal. This will install the dependencies for Client/Server
  4. Build the App for both Client and Server, by running npm run build-client-and-serverfrom your terminal
  5. Run the App with node public/server
  6. Open your browser, and navigate to: localhost:3000 Enjoy!

Image Sources

Images are loaded from https://unsplash.com/ using the Unsplash API (https://unsplash.com/developers)

You can change the API endpoint from the constants.ts, located at server/constants.ts. Make sure that you re-build the server after adding your API credentials by running tsc -p ./tsconfig.server.json from your terminal.

Developement

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the public/dist/ directory. Use the -prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

License

(The MIT License)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.