jordond / nxbm

MIT License
0 stars 0 forks source link

nxbm šŸš€

A backup manager for the Nintendo Switch

CircleCI All CircleCI Stable CircleCI Develop

Greenkeeper Dependencies Dev Dependencies

Waffle.io

nxbm is a backup manager for Nintento Switch games. For managing, and displaying detailed information and media about your game collection

NOTE: This project is in the very early stages, and currently only has a working API and file scanner/parser.

Highlights

Packages

nxbm will be available in a couple different ways:

  1. standalone server
  1. Docker container
  1. Desktop client

Requirements

The following are required for running nxbm. Unless you use the supplied Docker container.

Installation

WIP

Right now there are no releases as the project is still in early development. However if you would like to try it out anyways, follow these steps.

Open a terminal window:

# Clone the repo
git clone https://github.com/jordond/nxbm
cd nxbm

# Install all the dependencies
yarn # or `npm install`

# Build and package the standalone version
yarn package:standalone

# The packaged binary will be in ./build/bin/standalone
# Move it elsewhere, or run with node
node ./build/bin/standalone/nxbm.js

Once you have the project open, navigate to localhost:9999 to see the Web UI.

Configuration

WIP

After the first run find ./data/config.json, and edit what you need. Or override the config by passing the flags to the CLI.

ex:

node ./nxbm.js --port 80 --level verbose --downloadKeys

Contributing

All contributions are welcome! This repository uses commitizen as a standard for commit messages. That way a clean changelog can be created. So use yarn commit to create your commit message.

This repo is setup as a monorepo using TypeScript Project References. The core functionality of nxbm is located in the lib/ folder, while the consumers of that functionality are located in the packages/ folder.

Shared steps:

  1. Fork the repo, then clone it
  2. Install dependencies (yarn or npm install)

Working on the lib files:

  1. Run yarn dev:lib
  2. Make changes and TypeScript will automatically compile them.

Working on the backend api:

  1. Follow the steps for working on the lib files
  2. Open a seperate terminal session
  3. Run yarn dev:api
  4. Webpack will bundle all the files, and watch for changes.
  1. The API will be available at localhost:9999/api

Working on the full stack

  1. Follow the steps for working on the lib files
  2. Open a seperate terminal session
  3. Run yarn dev:bin
  4. The API will be available at localhost:9999/api
  5. The web ui will be available at localhost:10000

Commiting

  1. Run yarn commit to create your commit message
  2. Follow the prompts and be as detailed as possible
  3. Fix any linter errors
  4. Open up a Pull Request to the develop branch
  5. Wait for approval

License

MIT License

Copyright (c) 2018 Jordon de Hoog

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.