Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rodrigoqueiroz12/nodejs-todo-list
https://github.com/rodrigoqueiroz12/nodejs-todo-list
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/rodrigoqueiroz12/nodejs-todo-list
- Owner: rodrigoqueiroz12
- Created: 2023-08-20T15:51:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-20T16:15:42.000Z (over 1 year ago)
- Last Synced: 2023-08-20T17:12:56.530Z (over 1 year ago)
- Language: JavaScript
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node.js Todo List
This is my first project using Node
## Cloning the project
```Bash
git clone https://github.com/rodrigoqueiroz12/nodejs-todo-list.gitcd ./nodejs-todo-list
```## Create MySQL Database and Table
```sql
CREATE DATABASE IF NOT EXISTS DATABASE_NAME;USE DATABASE_NAME;
CREATE TABLE `tasks` (
`id` int NOT NULL AUTO_INCREMENT,
`title` varchar(45) NOT NULL,
`status` varchar(45) NOT NULL,
`created_at` varchar(45) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
```## 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
```terminal
cd ./backendnpm install
npm start
```## Running Frontend
```bash
cd ./frontendRun the Live Server VSCode extension
```