git clone this repo
git clone <repo>
you will need
- node v9+
- MySQL
- You need to install WooCommerce API on your wordpress site. Plugin installation instruction can be found here
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
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>
You need to globally install knex
as an npm dependency by running
npm run -g knex
next in your terminal run
knex migrate:latest
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
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
We use jest for testing.
To run the test run
npm run test