Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kalwar/full-stack-mysql2-app

A simple full-stack-mysql task app
https://github.com/kalwar/full-stack-mysql2-app

databases express mysql mysql2 sequelize simple-app vite

Last synced: about 2 months ago
JSON representation

A simple full-stack-mysql task app

Awesome Lists containing this project

README

        

# Full-stack-MySQL-Task-App

A simple full-stack-mysql task app

## Getting Started

You must have local MySQL installed first to run this very simple full-stack-mysql task based app.

### Prerequisites

What things you need to install the application and how to install them

```
brew install mysql
mysql -u root
mysql -u root -p (if you are using password)

sudo npm install -g nodemon
```

### Installing

Go to backend folder and install dependencies

```
cd backend
npm i
```

And move back to frontend folder

```
cd ..
cd frontend
npm i
```

Now go to the root of the folder and run

```
cd ..
npm i
npm start
```

### MySQL Database connection
If you get "Unknown database" error message, this means you have to first create a database in your local MySQL shell/terminal
```
show databases;
create database taskdbreact23s;
show databases; (make sure you have this db)
```

### Linting

To check for linting issues, you can go to frontend folder
and run

```
npm run lint
```

## Local Deployment

The application can be accessed locally from following address

```
http://localhost:5173/
```

## Built With

- [React](https://react.dev/) - The library for web and native user interfaces
- [MySQL](https://www.mysql.com/) - The world's most popular database
- [Express](https://expressjs.com/) - Fast, unopinionated, minimalist web framework for Node.js
- [Sequelize](https://sequelize.org/) - Node.js ORM for MySQL and other relational databases
- [Vite](https://vitejs.dev/) - Dev environment for front-end

## Use as reference material

Please use as a reference material

## License

This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/kalwar/full-stack-mysql2-app/blob/main/LICENSE) file for details

## Read more
- [Use Sequelize with Node.js and MySQL](https://www.digitalocean.com/community/tutorials/how-to-use-sequelize-with-node-js-and-mysql)
- [Why Vite is so fast](https://dev.to/takuyakikuchi/why-is-vite-so-fast-163p)
- [MySQL Database Client GUI Tools](https://www.bytebase.com/blog/top-mysql-gui-client/)