Skip to content

frakjs/frak

Repository files navigation

Contributors Forks Stargazers Issues MIT


frak

Deploy from point A → point B, without the drama.

Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact

About The Project

Product Name Screen Shot

frak is a tiny JavaScript binary for deployments that don’t need containers or repos—just fast, reliable file transfer from point A to point B.

It leverages rsync over SSH to push files to a remote server, and is able to visualize file changes in a developer-friendly way. frak has a number of advanced features beyond syncing files to a remote server, such as keeping a history of deployments for easy rollback, showing file differences prior to pushing, and executing post-deploy hooks.

🚀 Features

🔌 Init once, deploy anytime
🔎 Interactive diffs before every push/pull
📦 Patch-based backups stored on your server
🧾 Post-deploy commands (e.g. restart services)
📡 Quick SSH console access into deploy root
🔁 Pull support for syncing back changes
📋 Backup inspection with additions/deletions summary

(back to top)

Getting Started

Using frak is simple. All you need is a Node.js environment with npx.

Prerequisites

Make sure you have Node.js and npx installed.

node --version
npm --version
npx --version

Node.js and NPM Screenshot

(back to top)

Usage

The recommended way to run frak is via the npx command.

npx @frakjs/frak --help

If you're prompted to install the package, say yes.

Need to install the following packages:
@frakjs/frak@0.1.0
Ok to proceed? (y)

frak needs to be initialized in your project directory with the init command.

cd project-folder
npx @frakjs/frak init

frak init

This creates a frak.config.js file that looks something like this:

export default {
    server: "user@example.com",
    root: "/var/www/html",
};

You can replace server and root with the appropriate values for your environment.

With the configuration in place, you can now start fraking files to your server. It's as simple as the basic command without any arguments.

npx @frakjs/frak

The results of the command will show you a dry-run preview of the changes that will be synced to the remote server. You will be prompted before it proceeds with the actual file transfer.

If you'd like, you can cancel the sync by typing "no" or any non-"yes" value. Perhaps you want to see the changes line-by-line. frak can do this too!

npx @frakjs/frak diff

The command above will compare all the changes, and present a colorful git-style patch that you can inspect in your terminal.

(back to top)

Roadmap

  • Send an alert via Slack after push events
  • Parallel deployments to multiple environments at once

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

Top contributors:

contrib.rocks image

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Frank Strube - @strube - contact@frakjs.com

Project Link: https://github.com/frakjs/frak

(back to top)

About

A commandline deployment tool for syncing files to remote servers.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors