This project was to get experience building an entire full-stack app. I chose the PERN stack
- postgresql
- express
- react
- node This is a server I built to store to-dos.
- The front end is located here
- clone down this repo
- there is no need to fork
- cd into the server
- run
node index.js- if you have nodemon installed, you can run
nodemon index.jsinstead - to install nodemon globally (recommended), run
npm install -g nodemon
- if you have nodemon installed, you can run
- Yes you can!
- open a new terminal tab
- in new terminal tab, run
psql -U postgres - the password is
moneK324
- in new terminal tab, run
- you can run
\lto see all servers to which you have access - you can run
\cto pick a server - you can run
\dtto see all relations in that server- this is important
- it lets you see everything you can access
- once you have selected a server
- you may run
SELECT * FROM <stackName> - this will show you all data currently on that stack
- you may run
- to exit this view entirely, you may run
\q
- run the server with
npm start - the port should be listening on port 5000
- once the server is running, there's not much else to do!
- the server will track your todos, including edits and deletions
- each todo made is given a unique id, so they will always be tracked
- this project was built with create react app
- I followed this tutorial by
The Stoic Programmers


