https://github.com/isaacmg00/project-productive
Productivity oriented application made with the PERN stack. Features a habit tracker, to-do list, pomodoro timer, and user login functionality.
https://github.com/isaacmg00/project-productive
express node-js postgresql productivity react
Last synced: 3 months ago
JSON representation
Productivity oriented application made with the PERN stack. Features a habit tracker, to-do list, pomodoro timer, and user login functionality.
- Host: GitHub
- URL: https://github.com/isaacmg00/project-productive
- Owner: isaacmg00
- Created: 2022-04-21T23:47:18.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-17T06:22:30.000Z (about 4 years ago)
- Last Synced: 2026-02-06T17:55:10.150Z (5 months ago)
- Topics: express, node-js, postgresql, productivity, react
- Language: JavaScript
- Homepage:
- Size: 2.52 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Mac/Linux development environment
navigate to a directory where you want to store project files
```sh
git clone https://github.com/isaacmg00/project-productive
cd project-productive
cd client
npm install
npm i react-scripts
cd ..
cd server
npm install
```
start the react app dev server. make sure you're in the client/ directory
```sh
npm start
```
start the backend (not required to run react). make sure you're in the server/ directory this time
```sh
npm start
```
# Setup/Install PostgreSQL Database
### Install: https://www.enterprisedb.com/downloads/postgres-postgresql-downloads
### Install guide: https://www.postgresqltutorial.com/postgresql-getting-started/install-postgresql-macos/
Once you have installed PostgreSQL, navigate to ```server/db/postgresDB.sql``` and copy the commands seen there to create the database along with its tables. Additionally, create a file, ```index.js``` inside of the db folder that contains your db credentials.
```
const { Pool } = require("pg");
const db = new Pool({
user: "",
database: "comp484_final",
password: "",
port: 5432,
host: "localhost",
});
module.exports = { db }
```
After that, the backend should be all set up.