|
| 1 | +# BrowserAngular |
| 2 | + |
| 3 | +<p align="center"> |
| 4 | + <a href="https://js.ipfs.io" title="JS IPFS"> |
| 5 | + <img src="https://ipfs.io/ipfs/Qme6KJdKcp85TYbLxuLV7oQzMiLremD7HMoXLZEmgo6Rnh/js-ipfs-sticker.png" alt="IPFS in JavaScript logo" width="244" /> |
| 6 | + </a> |
| 7 | +</p> |
| 8 | + |
| 9 | +<h3 align="center"><b>IPFS React App</b></h3> |
| 10 | + |
| 11 | +<p align="center"> |
| 12 | + <b><i>Using js-ipfs in a `create-react-app`</i></b> |
| 13 | + <br /> |
| 14 | + <br /> |
| 15 | + <img src="https://raw.githubusercontent.com/jlord/forkngo/gh-pages/badges/cobalt.png" width="200"> |
| 16 | + <br> |
| 17 | + <a href="https://github.com/ipfs/js-ipfs/tree/master/docs">Explore the docs</a> |
| 18 | + · |
| 19 | + <a href="https://codesandbox.io/">View Demo</a> |
| 20 | + · |
| 21 | + <a href="https://github.com/ipfs/js-ipfs/issues">Report Bug</a> |
| 22 | + · |
| 23 | + <a href="https://github.com/ipfs/js-ipfs/issues">Request Feature</a> |
| 24 | + </p> |
| 25 | + |
| 26 | +## Table of Contents |
| 27 | + |
| 28 | +- [BrowserAngular](#browserangular) |
| 29 | + - [Table of Contents](#table-of-contents) |
| 30 | + - [About The Project](#about-the-project) |
| 31 | + - [Getting Started](#getting-started) |
| 32 | + - [Pre requisites](#pre-requisites) |
| 33 | + - [Installation and Running example](#installation-and-running-example) |
| 34 | + - [Available Scripts from create-react-app](#available-scripts-from-create-react-app) |
| 35 | + - [Development server](#development-server) |
| 36 | + - [Code scaffolding](#code-scaffolding) |
| 37 | + - [Build](#build) |
| 38 | + - [Running unit tests](#running-unit-tests) |
| 39 | + - [Running end-to-end tests](#running-end-to-end-tests) |
| 40 | + - [Further help](#further-help) |
| 41 | + - [Usage](#usage) |
| 42 | + - [Documentation](#documentation) |
| 43 | + - [Contributing](#contributing) |
| 44 | + - [Want to hack on IPFS?](#want-to-hack-on-ipfs) |
| 45 | + |
| 46 | +## About The Project |
| 47 | + |
| 48 | +- Read the [docs](https://github.com/ipfs/js-ipfs/tree/master/docs) |
| 49 | +- Look into other [examples](https://github.com/ipfs/js-ipfs/tree/master/examples) to learn how to spawn an IPFS node in Node.js and in the Browser |
| 50 | +- Consult the [Core API docs](https://github.com/ipfs/js-ipfs/tree/master/docs/core-api) to see what you can do with an IPFS node |
| 51 | +- Visit https://dweb-primer.ipfs.io to learn about IPFS and the concepts that underpin it |
| 52 | +- Head over to https://proto.school to take interactive tutorials that cover core IPFS APIs |
| 53 | +- Check out https://docs.ipfs.io for tips, how-tos and more |
| 54 | +- See https://blog.ipfs.io for news and more |
| 55 | +- Need help? Please ask 'How do I?' questions on https://discuss.ipfs.io |
| 56 | + |
| 57 | +## Getting Started |
| 58 | + |
| 59 | +### Pre requisites |
| 60 | + |
| 61 | +Make sure you have installed all of the following prerequisites on your development machine: |
| 62 | + |
| 63 | +- Git - [Download & Install Git](https://git-scm.com/downloads). OSX and Linux machines typically have this already installed. |
| 64 | +- Node.js - [Download & Install Node.js](https://nodejs.org/en/download/) and the npm package manager. |
| 65 | + |
| 66 | +### Installation and Running example |
| 67 | + |
| 68 | +```console |
| 69 | +> npm install |
| 70 | +> npm start |
| 71 | +``` |
| 72 | + |
| 73 | +Now open your browser at `http://localhost:3000` |
| 74 | + |
| 75 | +### Available Scripts from create-react-app |
| 76 | + |
| 77 | +In the project directory, you can run: |
| 78 | + |
| 79 | +#### Development server |
| 80 | + |
| 81 | +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. |
| 82 | + |
| 83 | +#### Code scaffolding |
| 84 | + |
| 85 | +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`. |
| 86 | + |
| 87 | +#### Build |
| 88 | + |
| 89 | +Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. |
| 90 | + |
| 91 | +#### Running unit tests |
| 92 | + |
| 93 | +Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). |
| 94 | + |
| 95 | +#### Running end-to-end tests |
| 96 | + |
| 97 | +Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities. |
| 98 | + |
| 99 | +#### Further help |
| 100 | + |
| 101 | +To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page. |
| 102 | + |
| 103 | +## Usage |
| 104 | + |
| 105 | +A minimal demonstration of how to use js-ipfs in a `angular` generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.1.2. |
| 106 | + |
| 107 | +Check the `ipfs.service.ts` file to how to use the basic of ipfs. |
| 108 | + |
| 109 | +_For more examples, please refer to the [Documentation](#documentation)_ |
| 110 | + |
| 111 | +## Documentation |
| 112 | + |
| 113 | +- [Config](https://docs.ipfs.io/) |
| 114 | +- [Core API](https://github.com/ipfs/js-ipfs/tree/master/docs/core-api) |
| 115 | +- [Examples](https://github.com/ipfs/js-ipfs/tree/master/examples) |
| 116 | +- [Development](https://github.com/ipfs/js-ipfs/blob/master/docs/DEVELOPMENT.md) |
| 117 | + |
| 118 | +## Contributing |
| 119 | + |
| 120 | +Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**. |
| 121 | + |
| 122 | +1. Fork the IPFS Project |
| 123 | +2. Create your Feature Branch (`git checkout -b feature/amazing-feature`) |
| 124 | +3. Commit your Changes (`git commit -a -m 'feat: add some amazing feature'`) |
| 125 | +4. Push to the Branch (`git push origin feature/amazing-feature`) |
| 126 | +5. Open a Pull Request |
| 127 | + |
| 128 | +## Want to hack on IPFS? |
| 129 | + |
| 130 | +[](https://github.com/ipfs/community/blob/master/CONTRIBUTING.md) |
| 131 | + |
| 132 | +The IPFS implementation in JavaScript needs your help! There are a few things you can do right now to help out: |
| 133 | + |
| 134 | +Read the [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md) and [JavaScript Contributing Guidelines](https://github.com/ipfs/community/blob/master/CONTRIBUTING_JS.md). |
| 135 | + |
| 136 | +- **Check out existing issues** The [issue list](https://github.com/ipfs/js-ipfs/issues) has many that are marked as ['help wanted'](https://github.com/ipfs/js-ipfs/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22help+wanted%22) or ['difficulty:easy'](https://github.com/ipfs/js-ipfs/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Adifficulty%3Aeasy) which make great starting points for development, many of which can be tackled with no prior IPFS knowledge |
| 137 | +- **Look at the [IPFS Roadmap](https://github.com/ipfs/roadmap)** This are the high priority items being worked on right now |
| 138 | +- **Perform code reviews** More eyes will help |
| 139 | + a. speed the project along |
| 140 | + b. ensure quality, and |
| 141 | + c. reduce possible future bugs. |
| 142 | +- **Add tests**. There can never be enough tests. |
| 143 | +- **Join the [Weekly Core Implementations Call](https://github.com/ipfs/team-mgmt/issues/992)** it's where everyone discusses what's going on with IPFS and what's next |
0 commit comments