Giter Club home page Giter Club logo

kashcustomer's Introduction

Download

git clone this repo

git clone <repo>

Install it and run:

you will need

  • node v9+
  • MySQL

Setup Woocommerce

  • You need to install WooCommerce API on your wordpress site. Plugin installation instruction can be found here

Generete your woocommerce customer secret and customer key

Follow this instruction to generate the keys

  • Create a .env file in your root directory and paste the key and the url to your site as follows
#.env
WOOCOMERCE_URL=<your.wordpress.site>
WOO_CUSTOMER_SECRET=cs_XXXX
WOO_CUSTOMER_KEY=ck_XXXX

database connection

Add the following variable to your .env file and set the mysql user and password running on your local instance

DB_HOST=127.0.0.1
DB_USER=<db_user>
DB_PASS=<db_password>
DB_NAME=<db_name>

Run migrations

You need to globally install knex as an npm dependency by running

npm run -g knex

next in your terminal run

knex migrate:latest

Starting the app

NB: make sure that your MySQL , wordpress site and woocommerce API plugin are up and running.

npm install

npm run dev
# or
yarn
yarn dev

Create user :

In your browser navigate to localhost:3000

on the login page click on the click to signup link to create an account

  • if the registration goes through click on the click to login link and login

Testing

We use jest for testing.

To run the test run

npm run test

kashcustomer's People

Watchers

James Cloos avatar Mwaleh muturi avatar

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.