Table of Contents
-
Frontend - Vue.js
- User registration
- User login/logout
- Add to cart
- Checkout
- Browse products
- Manage users
- Manage staffs
-
Backend
- CURD product, order, user, staff
- MySql interaction
- Auth with jwt
Ensure Node.js and NPM are installed_
You will need to npm install in each directory in order to install the node module needed for each part of the project Directories Include: Root, Server & Client
Ensure Mysql server are installed and set up as backend/config/mysql.config.ts (fixable)
// backend/config/mysql.config.ts
export default {
host: 'localhost',
port: 3360,
user: 'root',
password: '',
database: 'ipcpart',
waitForConnections: true,
connectionLimit: 10,
queueLimit: 0,
};
- Clone or Download the repository (Depending on whether you are using SSH or HTTPS)
$ git clone https://github.com/vinh466/ipcpart.git
$ cd ipcpart
- Install dependencies
$ npm install
- Start the application
$ npm run dev
Then access Frontend - Client with http://localhost:3001
, Frontend - Admin with http://localhost:3001/admin
and Backend with http://localhost:3005
via your Postman.
Service | Endpoint |
---|---|
Backend | http://localhost:3005/api |
User Frontend | http://localhost:3001/ |
Admin Frontend | http://localhost:3001/admin |
There are three users in the database initially. You can use them to login Frontend/Backend.
Service | Username | Password |
---|---|---|
Admin | admin | 123123 |
Staff | nv1 | 123123 |
User | vinhvinh | 123123 |
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Vinh Nguyen - @fb - vinh466@gmail.com
Project Link: https://github.com/vinh466/mevn-contactbook