GithubHelp home page GithubHelp logo

e_commerece_webapp's Introduction

Banner

E-Commerce Web Application

For End-Users

If you're looking to shop with us, here's how you can get started:

  • Visit Our Website: Access our e-commerce platform by navigating to our website. (Note: Replace # with the actual URL of your deployed application.)
  • Browse Products: Explore our wide range of products across different categories.
  • Add to Cart: Found something you like? Add it to your cart with just one click.
  • Checkout: Follow the simple checkout process to place your order.
  • Track Your Order: Keep tabs on your order with real-time updates on its status.

For Developers

If you're interested in setting up the project locally for development or testing purposes, follow these steps:

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Ensure you have the following installed:

  • Python 3.8 or higher
  • Pipenv

If you don't have Pipenv installed, you can install it by running:

pip install pipenv

Setting Up the Project

Clone the repository to your local machine:

git clone https://github.com/rougho/e_commerce_webapp.git

Navigate into the project directory:

cd e_commerce_webapp

Use Pipenv to create a virtual environment and install the dependencies:

pipenv install

Install the required dependencies:

pip install -r requirements.txt

Navigate into the app directory:

cd Alimama

Apply the migrations to create the database schema:

python manage.py migrate

Setting Up Environment Variables

To run this e-commerce web application correctly, you need to set up several environment variables that are crucial for the application's configuration, including settings for security, email services, and payment processing. These variables should never be hardcoded into your project files for security reasons. Instead, we use an .env file to define these variables.

Steps to Set Up Your .env File

  1. Create a .env file in the root directory of the project, if it doesn't already exist.

  2. Open your .env file and add the following environment variables:

    SECRET_KEY='your_django_secret_key'
    EMAIL_HOST_USER='[email protected]'
    EMAIL_HOST_PASSWORD='your_email_password'
    STRIPE_PUBLISHABLE_KEY='your_stripe_publishable_key'
    STRIPE_SECRET_KEY='your_stripe_secret_key'
    

    Replace the placeholder values with your actual data:

    • your_django_secret_key: A new, secure key for Django. You can generate one using online tools or Django itself by running django.core.management.utils.get_random_secret_key().
    • [email protected] and your_email_password: Credentials for the email service you'll use for sending emails from the application.
    • your_stripe_publishable_key and your_stripe_secret_key: Your Stripe API keys for handling payments. Obtain them from your Stripe dashboard.
  3. Save the .env file with your changes.

By following these steps, you can securely configure your application without exposing sensitive information in your codebase. Remember to add .env to your .gitignore file to prevent it from being tracked by Git and potentially exposed publicly.

Run the app

Run the development server:

python manage.py runserver

Access the Application:
Open your browser and go to http://127.0.0.1:8000 to see the application running locally.

Contributing

We welcome contributions to this project! Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

e_commerece_webapp's People

Contributors

rougho avatar

Watchers

 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.