Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rodrigoqueiroz12/react-node-crud
https://github.com/rodrigoqueiroz12/react-node-crud
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/rodrigoqueiroz12/react-node-crud
- Owner: rodrigoqueiroz12
- Created: 2023-08-27T22:40:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-27T22:57:09.000Z (over 1 year ago)
- Last Synced: 2023-08-27T23:48:59.912Z (over 1 year ago)
- Language: JavaScript
- Size: 81.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React + Node Simple CRUD
## Create MySQL Database and Table
```sql
CREATE DATABASE react_node_crud;USE react_node_crud;
CREATE TABLE users (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(255) NOT NULL,
email VARCHAR(255) NOT NULL UNIQUE,
contact VARCHAR(20),
date_of_birth DATE,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
);
```## Cloning the project
```Bash
git clone https://github.com/rodrigoqueiroz12/react-node-crud.gitcd ./react-node-crud
```## Update the Backend .env file
```
SERVER_PORT=YOUR_PORTDATABASE_HOST=localhost
DATABASE_USER=DATABASE_USER
DATABASE_PASSWORD=DATABASE_PASSWORD
DATABASE_NAME=DATABASE_NAME
```## Running Backend
```bash
cd ./backendnpm install
npm start
```## Running Frontend
```bash
cd ./frontendnpm install
npm run dev
```