Gathering detailed insights and metrics for initialiseur
Gathering detailed insights and metrics for initialiseur
Gathering detailed insights and metrics for initialiseur
Gathering detailed insights and metrics for initialiseur
npm install initialiseur
Typescript
Module System
Node Version
NPM Version
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
5
This is a package that can be installed on your computer to easily initialize node.js
node applications boiler plates:
It initializes the following boiler plate code
1- express 2- koa 3- electron
This backend server is an express
application with cors
configured that is ready to run on a configured default port 3001
which can be modified in code. This package can initialize boiler plate code for a basic express application for the following languages:
(default)
Generated files for an express
boiler plate:
1 2Generating Basic Files(🌼) and Folders(📁) 3 📁 src 4 📁 routes 5 🌼 index.ts 6 🌼 server.ts 7 🌼 .gitignore 8 🌼 .env 9 🌼 package.json 10 🌼 tsconfig.json
This backend server is an koa
that is ready to run on a configured default port 3001
which can be modified in code. This package can initialize boiler plate code for a basic express application for the following languages:
(default)
Generated files for an koa
boiler plate:
1Generating Basic Files(🌼) and Folders(📁) 2 📁 src 3 📁 routes 4 📁 hello 5 🌼 index.ts 6 🌼 server.ts 7 🌼 .gitignore 8 🌼 .env 9 🌼 package.json 10 🌼 tsconfig.json
This is skeleton electron application that is ready and running. All you have to do it to change the code according to what you want your application to do. The current version 5.0.*
is currently having one language initialization for an electron application which is:
javascript
Generated files for an electron
boiler plate:
1Generating Basic Files(🌼) and Folders(📁) 2 📁 src 3 📁 public 4 🌼 index.html 5 📁 scripts 6 🌼 index.js 7 🌼 preload.js 8 📁 styles 9 🌼 index.css 10 🌼 main.js 11 🌼 .gitignore 12 🌼 README.md 13 🌼 LICENSE 14 🌼 .env 15 🌼 package.json
Note that this package is coming from
@crispengari/node-backend
.
First you need to install the node initialiseur
globally by running the following command:
npm
1npm install -g initialiseur
yarn
yarn global add initialiseur
To initialize a new node
boiler plate application you run the following command:
initialiseur init <name>
Note that you can initialize the
node.js
backend project without installinginitialiseur
globally by the use ofnpx
:
1npx initialiseur init <name>
<name>
is optional if note specified initialiseur
will use the root
directory of the project as the default package name, which can be altered as well.initialiseur
initialiseur
package1initialiseur -h 2 3# or 4initialiseur --help
initialiseur
package:1initialiseur -v 2# or 3initialiseur --version
This initializes a new initialiseur
project:
1 2initialiseur init <name> 3# Or 4initialiseur init
Note: Starting the server is different if you are using typescript
or javascript
and if you are using electron
, koa
or express
.
JavaScript
:1# yarn 2yarn start 3 4# npm 5npm run start
The above command start a application for both
electron
,koa
andexpress
. Theelectron
application is currently starting with one command which is thestart
.
TypeScript
:With ts
you have to open two command the one that will watch
for file changes and the other one that will run the compiled javascript code:
a) cmd
1
1# yarn 2yarn watch 3 4# npm 5npm run watch
b) cmd
2
1# yarn 2yarn dev 3 4# npm 5npm run dev
Or you can run a single command which was introduced in version 5.1.*
which is:
1# yarn 2yarn start:fast 3 4# npm 5npm run start:fast
The above commands can only be run when you are either running a typescript application for either
koa
orexpress
.
@crispengari/node-backend
to initialiseur
Initialiseur
was initially @crispengari/node-backend
so you can initialize the node.js
backend by running executing @crispengari/node-backend
using npx
.
You can be able to execute the specific versions of @crispengari/node-backend
using the node package executer (npx)
npx
1npx @crispengari/node-backend@<version> 2 3# example (make sure the version exists before running this) 4npx @crispengari/node-backend@<1.3.2>
v1
@crispengari/node-backend@1.3.2
@crispengari/node-backend@1.3.6
@crispengari/node-backend@1.3.7
@crispengari/node-backend@1.3.8
v2
@crispengari/node-backend@2.0.1
v3
initialiseur@3.0.0
initialiseur@3.0.1
initialiseur@3.0.2
initialiseur@4.*.*
?initialiseur@5.*.*
?initialiseur
?initialiseur
is a name that I got from google translation english to french for the name initializer
. I created this package so that developers can create their backend applications with typescript or javascript without running into a headache of creating files and installing basic packages like express
.
initialiseur
package has commonly known issue when for starting the kao
or express
server for the first time with the start:fast
command for both npm
and yarn
. The error is as follows:1 Error: Cannot find module './server.js'
The solution to this is to either open one of your
ts
boiler plate files and save it or you stop the command and run it again.
MIT License
Copyright (c) 2021 Crispen Gari
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.
No vulnerabilities found.
No security vulnerabilities found.