Backend Framework with Node, Express & SQL
Nens is a Backend Framework made with Node, Express & MySQL, where you can find an some packages complementary, like JWT, Nodemailer, Sharp & back securities
Use this Template
or
git clone https://github.com/philippebeck/nens.git
or
Latest Release
NPM : npm i nens
or
Yarn : yarn add nens
If you choose to get Nens from NPM or Yarn : you need to copy Nens from node_modules/nens to the root of your App
Install the backend dependencies :
$ cd nens
$ npm i
Configure the .env.example by replacing the values (like DB, Mailer & Token) :
.env.example
(then rename it .env)
Your personal .env will be hidden in .gitignore automatically
Import the database tables :
$ mysql -u root -p < app/DBTables.sql
or with a UI like phpMyAdmin
Personally, I have another SQL file for data insertion, hidden in .gitignore
To run the backend server :
$ npm start
Available API Files :
- AuthCtrl, AuthRoute (Auth)
- UserModel, UserCtrl, UserRoute (Users)
- ProductModel, ProductCtrl, ProductRoute (Products)
- OrderModel, OrderCtrl, OrderRoute (Product Orders)
- ArticleModel, ArticleCtrl, ArticleRoute (Articles)
- ProjectModel, ProjectCtrl, ProjectRoute (Projects)
- LinkModel, LinkCtrl, LinkRoute (Links)
- GalleryModel, GalleryCtrl, GalleryRoute (Galleries)
- ImageModel, ImageCtrl, ImageRoute (Gallery Images)
Available Documentation :