MohamedBeydoun / atlas

An express-typescript code generator
Apache License 2.0
6 stars 0 forks source link

Atlas

Atlas is a command-line tool that helps you initialize and develop your Express-Typescript applications.

Installation

Precompiled binaries

Precompiled binaries can be found in the releases section of this project. Once the appropriate binary has been downloaded run the following commands:

Linux and macOS

tar -zxvf <binary>.tar.gz
sudo mv <binary> /usr/local/bin/atlas
atlas

Windows

#Open powershell as admin
tar -zxvf <binary>.tar.gz
mv <binary> C:\WINDOWS\system32\atlas.exe 
atlas

npm package

npm install -g atlas-generator

Usage

atlas help

Provides a description and usage instructions for the provided command.

$ atlas help <command>

NOTE: The --help (-h) flag can be used with any command for the same effect.

atlas create

Creates a new express-typescript project.

$ atlas create <name> [options]

Arguments:

Options:

atlas console

Loads the express application into a node console for easier debugging.

atlas console [options]

Options:

atlas generate

Generates a new resrouce of specified type. Currently, we support:

$ atlas generate <resource> [options]

NOTE: Preferably, resource names should be singular as the cli will change to plural as needed.

atlas generate model

Generates the model, interface, and basic database interactions files for a mongodb model.

$ atlas generate model <name> [options]

Arguments:

Options:

atlas generate router

Generates the files for an express router along with it's controller.

$ atlas generate router <name> [options]

Arguments:

atlas generate route

Populates the router and controller files with the given route information.

$ atlas generate route [options]

Options:

atlas version

Prints Atlas' version to the terminal

$ atlas version

License

Apache License 2.0. see LICENSE