Skip to content

Phakeme/takealot-clone-store-front

Repository files navigation

codealot-logo-with-slogan (1)

Takealot E-Commerce Website Clone (Codealot)

Codealot is a friendly community project. It is a place where you can add features and functionalities from Takealot, and it is designed to help developers with little or no experience to get a taste and feel of what it’s like to work on big production projects.

Installing / Getting started

Before you can start working with Codealot, you need to:

  1. Install git, Node.js (>= 16.0.0).

  2. Fork the Codealot repository using the Fork button on GitHub.

  3. Clone the forked repository to your computer using the following commands (replace [your account] with the account you forked the repositories to): git clone https://github.com/[your_account]/codealot.git

To run Codealot locally, you'll first need to install its dependencies and build the app locally.

Do this like so:

cd codealot
npm install

Running the app with Docker

# To build the docker image for the app
docker build -t takealot-clone-store-front:1.0 .

Start and Stop Engines

# rebuild arbitrarily, won't affect running containers
docker-compose build

# rebuild and immediately start containers
docker-compose up -d --build

Initial Configuration

You will need the get the api access token from Commercejs

  1. Create an account with Commercejs
  2. Login to your account and create a new store.
  3. Create at least 6 products for your new store.
  4. On your dashboard under developer tap, click API keys & CORS to get your API access token.
  5. Back to your local Codealot project, create an .env file on the root folder of your project.
  6. Paste your access token from Commercejs

Do this like so:

REACT_APP_CHEC_PUBLIC_KEY='YOUR API ACCESS TOKEN'
  1. Start your app
codealot npm start

To build the app for production and deployment

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

About

Takealot E-Commerce Website Clone (Codealot)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors