anypay is an ecommerce online store with a range of products for sale
- User authentication using firebase
-
Homepage
-
Product store with a range of products
-
User can purchase airtime
-
Product cart powered by redux
-
Checkout functionality from an express serverless backend
- Clone the project using git clone
- Switch to the client side directory:
cd frontend
- Run
npm install
to install all the reuired dependencies thennpm start
. - The app will now automatically open in your default browser
The express backend is implemented using the serverless framework and it runs stk push reuest function.
- Open a new terminal and switch to the backend directory:
cd
backend
- Run
npm install
- Create an account on mpesa daraja api platform then create a new app sandbox
- Create a .env file in the root directory. add the following values in the file:
- consumerKey=consumerKeyValue
- consumerSecret=consumerSecretValue
- passKey=passKeyValue
- API_GATEWAY=
- Start the server using
sls offline start --param="tunnel=true"