Get started
Initialize new application
Setting a SugoiJS application is only two steps away.

Simple init of new application
$ npm i -g @sugoi/cli
Use the initialization wizard to define your needs.
$ sugoi init <app name> && cd <app name>/server
Or
$ sgi init <app name> && cd <app name>/server
All you left to do is to to run your server!
$ npm start
For using the live reload feature you need to
- 1.Build with watch by using the
dev
action - command session won't get closed
npm run dev
2. Run the server with
nodemon
- command session won't get closednpm run start:watch
As soon you will done the installation you should be able to reach
http://localhost:3000
for reach the client application andhttp://localhost:3000/index
for reach the API endpoint.├───client <-- Your web client application directory
│ └───assets
├───common <-- Common (shared) files between client and server
└───server <-- Your SugoiJS server directory
├───configuration <-- Build config (environment based configurations)
│ └───<env | default>
| └── variables.js <-- environment variables for this build
| └── security.js <-- server security configurations
| └── ssl.js <-- ssl configurations
| └── <Custom>.js <-- custom configurations
└───src <-- Your server app source code
├───app <-- Bootstrap module, Server initialize and listener files, 'authorization' class(optional)
│ └───classes
├───config <-- Server configuration (services, paths, etc.)
└───modules <-- All of you application modules
└───index <-- Single module
├───controllers <-- Modules' controllers
├───models <-- Modules' models(optional)
└───services <-- Modules' services
Last modified 4yr ago