Giter VIP home page Giter VIP logo

junia-eccomerce's Introduction

JUNIA

Junia is an eccomerce web app built on the MERN stack i.e. M - MongoDB, E - Express.js, R - React.js, N - Node.js. Users can view products available for sale, see the description and prices, add the product to cart, enter shipping address, choose payment method and then place the order. However certaing actions like entering the shipping address, payment and plaing orders is only allowed for logged in users. Authentication and Authorization use JSON web tokens which are generated in the backend and are provided when a user enters valid credentials in the login page.

Home

Getting Started

  • Type the following command in your terminal to clone this repository
https://github.com/Edu58/Junia-Eccomerce.git

If you are using SSH, use the following command

[email protected]:Edu58/Junia-Eccomerce.git

When you run the commands successfully, you should have a local version of this repository.

Prerequisites

  • A computer with Node installed
  • Access to the Internet
  • An IDE of your choice e.g. VS Code, Sublime Text or Atom

Installing

Before starting the application, navigate into the frontend and backend folders and run nmp install to install the project dependencies.

create .env file in the backend project root directory and populate it with:

DATABASE_CONNECTION_URI='<your mongodb uri>'
ACCESS_TOKEN_SECRET='<your access token secret>'
REFRESH_TOKEN_SECRET='<your refresh token secret>'

To run the web app, navigate inside the frontend folder and run npm run dev to start the local server then navigate into the backend folder and run npm start in your terminal. Both servers should be running for the web app to work. Once the server is running, open your browser and enter localhost:5173 or the address shown in the terminal running the frontend local server. Open your preferred browser, and enter the address in your url bar and press enter and you should be able to use the app now. This will only work on the computer running the server. It is not available to anyone else.

More screenshots

product cart login

Built With

Known Bugs

Missing payments. working on it.

Feel free to submit a pull request or reach out at [email protected].

Contributing

Feel free to submit a pull request or reach out at [email protected].

Authors

License

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

junia-eccomerce's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

kipyegonb

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.