ahmadi-akbar / nodeeweb-form

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nodeeweb Form | Form Plugin For Nodeeweb

The plugin add form functionality to your nodeeweb core.

You can create forms and manage their entries with this plugin.

Table of contents

Usage

1. install using command

npm install @nodeeweb/form

or

yarn add @nodeeweb/form

2. use it in your server function like below:

(you imported Server function from @nodeeweb/server)

import Server from '@nodeeweb/server'
import Shop from '@nodeeweb/form'
Server({entity:[...Form]});

3. start your mongoDB server:

sudo systemctl start mongod

4. check if the server is up and running:

sudo systemctl status mongod

5. now your shop is ready, just type command:

# If you use npm:
npm start

# Or if you use Yarn:
yarn start

3. after that .env.local will be created

======= or

node index.mjs

6. after that .env.local will be created

after you start server for first time, .env.local will be created, you can change configurations in it and restart server

Documentation

Check the getting started guide here: Documentation

API

You can find full list of Apis on: API-Reference

These routes have been added to your server after installing shop:

API List
GET      /customer/attributes
GET      /customer/attributes/count
GET      /customer/attributes/:offset/:limit
GET      /customer/attributes/:id
POST     /customer/attributes
PUT      /customer/attributes/:id
DELETE   /customer/attributes/:id
GET      /admin/attributes
GET      /admin/attributes/count
GET      /admin/attributes/:offset/:limit
GET      /admin/attributes/:id
POST     /admin/attributes
PUT      /admin/attributes/:id
DELETE   /admin/attributes/:id
GET      /customer/discount
GET      /customer/discount/count
GET      /customer/discount/:offset/:limit
GET      /customer/discount/:id
POST     /customer/discount
PUT      /customer/discount/:id
DELETE   /customer/discount/:id
GET      /admin/discount
GET      /admin/discount/count
GET      /admin/discount/:offset/:limit
GET      /admin/discount/:id
POST     /admin/discount
PUT      /admin/discount/:id
DELETE   /admin/discount/:id
GET      /customer/order
GET      /customer/order/count
GET      /customer/order/:offset/:limit
GET      /customer/order/:id
POST     /customer/order
PUT      /customer/order/:id
DELETE   /customer/order/:id
GET      /admin/order
GET      /admin/order/count
GET      /admin/order/:offset/:limit
GET      /admin/order/:id
POST     /admin/order
PUT      /admin/order/:id
DELETE   /admin/order/:id
GET      /customer/product
GET      /customer/product/count
GET      /customer/product/:offset/:limit
GET      /customer/product/:id
POST     /customer/product
PUT      /customer/product/:id
DELETE   /customer/product/:id
GET      /admin/product
GET      /admin/product/count
GET      /admin/product/:offset/:limit
GET      /admin/product/:id
POST     /admin/product
PUT      /admin/product/:id
DELETE   /admin/product/:id
GET      /customer/productCategory
GET      /customer/productCategory/count
GET      /customer/productCategory/:offset/:limit
GET      /customer/productCategory/:id
POST     /customer/productCategory
PUT      /customer/productCategory/:id
DELETE   /customer/productCategory/:id
GET      /admin/productCategory
GET      /admin/productCategory/count
GET      /admin/productCategory/:offset/:limit
GET      /admin/productCategory/:id
POST     /admin/productCategory
PUT      /admin/productCategory/:id
DELETE   /admin/productCategory/:id
GET      /customer/transaction
GET      /customer/transaction/count
GET      /customer/transaction/:offset/:limit
GET      /customer/transaction/:id
POST     /customer/transaction
PUT      /customer/transaction/:id
DELETE   /customer/transaction/:id
GET      /admin/transaction
GET      /admin/transaction/count
GET      /admin/transaction/:offset/:limit
GET      /admin/transaction/:id
POST     /admin/transaction
PUT      /admin/transaction/:id
DELETE   /admin/transaction/:id

=======

presets , examples , demo

Support

If you like the project and you wish to see it grow, please consider supporting us with a donation of your choice or become a backer/sponsor via Open Collective

we used these modules:

License

Nodeeweb is licensed under the GNU GENERAL PUBLIC LICENSE, sponsored and supported by https://idehweb.com

Changelogs

  • 0.0.5 update readme file and docs
  • 0.0.1 stable

About

License:GNU General Public License v3.0


Languages

Language:JavaScript 100.0%