This is the front end for the DApp.Africa blog. The project was generated with Angular CLI version 9.1.1.
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.
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
.
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.
Easiest way to host on Netlify, Github pages or any basic hosting provider is to do: ng build --prod --output-path docs --base-href /
and upload / publish the docs
folder.
There is a .htaccess
file located in src/.htaccess
it has conditions that force https from http and allows perma-links. How this works is that on every http request the server (Apache) will serve the index.html
file, allowing you to handle routing from angular-routes to show relevant content on whatever url the user requests. https://serverfault.com/questions/188373/apache-2-2-rewrite-force-all-requests-to-index-html
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.