JohnsonJay / Ng-Portfolio

Portfolio site for devs to showcase their skills and projects. Built using Angular 🛡️ and Firebase 🔥

Home Page:https://jayjohnson.co.za/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NgPortfolio

This project was generated with Angular CLI version 8.2.1.

This project, paired with the tutorials, is aimed at allowing devs to create and customize their own portfolio site using Angular. With Firebase there is an added benefit of being able to store data and host your site (free of charge).

Getting Started

The Angular App

  • Once you've cloned the repo, be sure to run npm i.
  • Assuming you have an existing firebase project:
    • Run firebase init to initialize firebase in your project and be sure to select the existing project.
    • Be sure to include Firebase Hosting, and Firestore
    • Ensure that your public directory is the same as the build outputPath in your angular.json. In this case it will be /dist/Ng-Portfolio.
  • Be sure to include your Firebase config settings inside the environment.ts and environment.prod.ts (Feels like a bit too much effort to create separate environments for a portfolio app.

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.

Build and Deploy to Firebase

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

  • Be sure to delete the current /dist directory and all of its contents.
  • Run ng build --prod.
  • Cd in to the /dist/Ng-Portfolio directory and run the command: firebase deploy --only hosting.
  • Have a look at the terminal for the URL which your app will be hosted on.

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.

Buy me a coffee... pretty please

Buy Me A Coffee

About

Portfolio site for devs to showcase their skills and projects. Built using Angular 🛡️ and Firebase 🔥

https://jayjohnson.co.za/

License:MIT License


Languages

Language:JavaScript 56.4%Language:Less 39.4%Language:TypeScript 3.1%Language:HTML 1.1%Language:CSS 0.0%