npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

create-ocean-app

v0.1.1

Published

Create Ocean-powered React apps with one command

Downloads

7

Readme

Create Ocean App Styled with Prettier Commitizen Friendly License: MIT PRs Welcome

Create Ocean-powered React apps with one command.

Create Ocean App works on macOS, Windows, and Linux. If something doesn’t work, please file an issue. If you have questions or need help, please ask in our Discord community.

Quick Overview

yarn create ocean-app my-ocean-app
cd my-ocean-app
yarn react-app:start

If you've previously installed create-ocean-app globally via yarn global add create-ocean-app, we recommend you uninstall the package using yarn global remove create-ocean-app and use the yarn create ocean-app shorthand to ensure that you use the last version.

Then open http://localhost:3000/ to see your app. When you’re ready to deploy to production, create a minified bundle with yarn run react-app:build.

Creating an App

You’ll need to have Node 8.16.0 or Node 10.16.0 or later version on your local development machine (but it’s not required on the server). You can use nvm (macOS/Linux) or nvm-windows to switch Node versions between different projects.

You'll also need Yarn on your local development machine. This is because Create Ocean App relies on Yarn Workspaces, a feature not supported by Npm.

To create a new app, you may use the following method:

yarn create ocean-app my-ocean-app

yarn create <starter-kit-package> is available in Yarn 0.25+

It will create a directory called my-ocean-app inside the current folder.

Inside that directory, it will generate the initial project structure, assuming you did not provide a custom template:

my-ocean-app
├── README.md
├── node_modules
├── package.json
├── .gitignore
└── packages
    ├── contracts
    │   ├── README.json
    │   ├── package.json
    │   └── src
    │       ├── abis
    │       │   └── erc20.json
    │       ├── addresses.js
    │       └── index.js
    └── react-app
        ├── README.md
        ├── package.json
        ├── node_modules
        ├── public
        │   ├── favicon.ico
        │   ├── index.html
        │   └── manifest.json
        └── src
            ├── App.css
            ├── App.js
            ├── App.test.js
            ├── ethereumLogo.svg
            ├── index.css
            ├── index.js
            ├── serviceWorker.js
            └── setupTests.js

Once the installation is done, you can open your project folder:

cd my-ocean-app

Inside the newly created project, you can run some built-in commands:

Packages

React App

To learn React, check out the React documentation.

yarn react-app:start

Runs the React app in development mode. Open http://localhost:3000 to view it in the browser.

The page will automatically reload if you make changes to the code. You will see the build errors and lint warnings in the console.

yarn react-app:test

Runs the React test watcher in an interactive mode. By default, runs tests related to files changed since the last commit.

Read more about testing React.

yarn react-app:build

Builds the React app for production to the build folder. It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.

Your React app is ready to be deployed.

How to Update to New Versions?

If you're using the yarn create ocean-app shorthand (the recommended approach), Yarn will automatically update Create Eth App for you.

Otherwise, you will receive a warning in the shell with the instructions for how to update:

A new version of `create-ocean-app` is available!
You can update by running: yarn global add create-ocean-app

Philosophy

  • Minimalistic by design: You are one command away from creating a new Ocean-powered React app. No intermediary installs, scripts or shims.

  • End-to-End: Create Ocean App provides you everything that you need to build and maintain an Ocean-powered React app at scale, by bringing Yarn Workspaces, Create React App and Ocean Protocol under one roof

  • Not Reinventing The Wheel: Under the hood, you use Create React App, one of the most popular and battle-tested frontend development environments.

What’s Included?

Your environment will have everything you need to build a modern Ethereum-powered single-page React app:

  • Smooth project management via Yarn Workspaces
  • Everything included with Create React App: React, JSX, ES6, TypeScript and Flow syntax support
  • Minimalist structure for managing the smart contract ABIs and addresses
  • Hassle-free updates for the above tools with a single dependency

Credits

This project exists thanks to all the people who contributed:

Along with the creators of create-eth-app

Acknowledgements

We are grateful to the authors of existing related projects upon which create-ocean-app is based:

License

Create Ocean App is open source software licensed as MIT.