Giter Club home page Giter Club logo

client's Introduction

For any support, questions, or for anything contact [email protected]

Not a developer? Want a already configured, highly customizable, e-commerce platform? Contact [email protected]

Cezerin is React and Node.js based eCommerce platform. React Shopping Cart.

Cezerin - Ecommerce Progressive Web Apps. Complete Solution.

Cezerin Platform:

  1. Cezerin API - Backend.
  2. Cezerin Store - Frontend.
  3. Cezerin Admin - Dashboard.
  4. Cezerin Client - JavaScript client for Cezerin REST API.

Built with:

  • NodeJS
  • ReactJs
  • Redux
  • ExpressJs
  • Babel
  • WebPack
  • MongoDB

Links

Store

Single-Page Application with React server-side rendering.

SEO Friendly. Google Analytics eCommerce Tracking included.

Online Demo Store - Plusha Theme

Cezerin Store Plusha Theme

Online Demo Store - Default Theme

Cezerin Store Default Theme Cezerin Store Default Theme

Dashboard

Client-side dashboard use JSON Web Token (JWT) to access REST API.

Online Demo Dashboard

Cezerin Dashboard

Docs

Requirements

Documentation

Documentation

Quick Start

On your local machine

If you have installed above requirements,

  1. Download code
  2. Extract code, update config at config folder as you need and run setup.sh on the folder
  3. To setup required mongodb collections you will need to run yarn setup from command line in the folder
On Digitalocean Droplet
  1. Start a basic ubuntu server
  2. Run curl -o- https://raw.githubusercontent.com/Cezerin2/Cezerin2/main/scripts/droplet.sh | bash in the command line
  3. You can update config from config folder as required and restart server by running yarn build and pm2 start process.json

Application Structure

.
├── config                   # Project and build configurations
├── dist                     # Distribution folder
├── locales                  # Text files
├── logs                     # Log files
├── public                   # Static public assets and uploads
│   ├── admin                # Dashboard index.html
│   ├── admin-assets         # Dashboard assets
│   └── content              # Store root folder
|
├── scripts                  # Shell scripts for theme install/export
├── src                      # Application source code
│   ├── admin                # Dashboard application
│   │   └── client           # Client side code
│   ├── api                  # REST API
│   │   └── server           # Server side code
│   ├── store                # Store application
│   |   ├── client             # Client side code
│   |   ├── server             # Server side code
│   |   └── shared             # Universal code
│   └── index.js             # Server application start point
├── theme                    # Theme as a local package
└── process.json             # pm2 process file

NPM Scripts

npm run <script> Description
setup Run Cezerin mongodb setup.
compile Compiles the store to disk (~/dist by default).
compile:watch Compiles the store and theme to disk and watch (~/dist by default).
webpack:admin Assemble admin bundles.
webpack:store Assemble store bundles.
webpack:admin:watch Assemble admin bundles and watch.
webpack:store:watch Assemble store bundles and watch.
theme:install Install theme from /public/.zip
theme:export Zip current theme to /public/.zip
theme:compile Compile theme after modification.
theme:build Refresh theme after modification.
build Compile and assemble bundles.
build:watch Compile and assemble bundles and watch.
lint Check project with eslint.
lint:fix Check and fix project with eslint.
format Format project with prettier.
start:api Start node server.
start:store Start store server.
start Start Cezerin.
watch:api Start node server and watch.

Financial contributions

We also welcome financial contributions in full transparency on our open collective. Anyone can file an expense. If the expense makes sense for the development of the community, it will be "merged" in the ledger of our open collective by the core contributors and the person who filed the expense will be reimbursed.

Credits

Contributors

Thank you to all the people who have already contributed to cezerin2!

Emil K.

Contributing

If you can, please contribute by reporting issues, discussing ideas, or submitting pull requests with patches and new features. We do our best to respond to all issues and pull requests within a day or two, and make patch releases to npm regularly.

Licence

This software is provided free of charge and without restriction under the MIT License

client's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar himadu2000 avatar lortschi avatar lubuss avatar ngoyal16 avatar restmount avatar sonufrienko avatar vamcart avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

client's Issues

setup cezerin2 client

current there is no cezerin2-client, this needs to be set up and linked to this repo. All documentation should be updated to reflect new npm setup.

Errors on src/restClient.ts

src/restClient.ts:22:14 - error TS2339: Property 'body' does not exist on type '{ method: string; headers: { "Content-Type": string; Authorization: string; }; }'.

22 config.body = JSON.stringify(data)
~~~~

src/restClient.ts:49:59 - error TS2345: Argument of type 'string' is not assignable to parameter of type '{ [key: string]: any; }'.

49 ${this.baseUrl}${endpoint}?${queryString.stringify(filter)},
~~~~~~

src/restClient.ts:50:35 - error TS2554: Expected 2 arguments, but got 3.

50 this.getConfig("get", null, cookie)
~~~~~~

src/restClient.ts:74:48 - error TS2554: Expected 2 arguments, but got 1.

74 return fetch(this.baseUrl + endpoint, this.getConfig("delete")).then(
~~~~~~~~~~~~~~~~~~~

src/restClient.ts:12:29
12 getConfig(method: string, data: string) {
~~~~~~~~~~~~
An argument for 'data' was not provided.

Errors on src/webstoreClient.ts

src/webstoreClient.ts:19:18 - error TS2339: Property 'returnStatusAndJson' does not exist on type 'typeof RestClient'.

19 RestClient.returnStatusAndJson

Fixing errors

The master code still contains around 20 errors, so please any contributor or member, finish out them so it could be published.

Errors on index.ts

src/index.ts:111:7 - error TS2322: Type '{}' is not assignable to type 'string'.

111 baseUrl: this.apiBaseUrl,

src/index.ts:118:19 - error TS2339: Property 'options' does not exist on type 'Products'.

118 this.products.options = new ProductOptions(apiClient)
~~~~~~~

src/index.ts:119:19 - error TS2339: Property 'options' does not exist on type 'Products'.

119 this.products.options.values = new ProductOptionValues(apiClient)
~~~~~~~

src/index.ts:120:19 - error TS2339: Property 'variants' does not exist on type 'Products'.

120 this.products.variants = new ProductVariants(apiClient)
~~~~~~~~

src/index.ts:121:19 - error TS2339: Property 'images' does not exist on type 'Products'.

121 this.products.images = new ProductImages(apiClient)
~~~~~~

src/index.ts:125:17 - error TS2339: Property 'discounts' does not exist on type 'Orders'.

125 this.orders.discounts = new OrderDiscounts(apiClient)
~~~~~~~~~

src/index.ts:126:17 - error TS2339: Property 'transactions' does not exist on type 'Orders'.

126 this.orders.transactions = new OrderTransactions(apiClient)
~~~~~~~~~~~~

src/index.ts:127:17 - error TS2339: Property 'items' does not exist on type 'Orders'.

127 this.orders.items = new OrderItems(apiClient)
~~~~~

src/index.ts:135:16 - error TS2339: Property 'settings' does not exist on type 'Theme'.

135 this.theme.settings = new ThemeSettings(apiClient)
~~~~~~~~

src/index.ts:136:16 - error TS2339: Property 'assets' does not exist on type 'Theme'.

136 this.theme.assets = new ThemeAssets(apiClient)
~~~~~~

src/index.ts:137:16 - error TS2339: Property 'placeholders' does not exist on type 'Theme'.

137 this.theme.placeholders = new ThemePlaceholders(apiClient)
~~~~~~~~~~~~

src/index.ts:189:5 - error TS2739: Type 'WebStoreServices' is missing the following properties from type '{ settings: {}; actions: {}; logs: {}; }': settings, actions, logs

189

src/index.ts:115:49 - error TS2322: Type '{}' is not assignable to type 'string'.

115 const webstoreClient = new WebStoreClient({ token: this.webstoreToken })

Small errors

src/ajaxClient.ts:4:3 - error TS2416: Property 'getConfig' in type 'AjaxClient' is not assignable to the same property in base type 'RestClient'.
Type '(method: string, data: string, cookie: string) => { credentials: string; method: string; headers: { "Content-Type": string; }; }' is not assignable to type '(method: string, data: string) => { method: string; headers: { "Content-Type": string; Authorization: string; }; }'.

4 getConfig(method: string, data: string, cookie: string) {
~~~~~~~~~

src/ajaxClient.ts:14:22 - error TS2339: Property 'Cookie' does not exist on type '{ "Content-Type": string; }'.

14 config.headers.Cookie = cookie
~~~~~~

src/ajaxClient.ts:18:14 - error TS2339: Property 'body' does not exist on type '{ credentials: string; method: string; headers: { "Content-Type": string; }; }'.

18 config.body = JSON.stringify(data)
~~~~

src/apiClient.ts:14:18 - error TS2339: Property 'returnStatusAndJson' does not exist on type 'typeof RestClient'.

14 RestClient.returnStatusAndJson
~~~~~~~~~~~~~~~~~~~

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.