This project was bootstrapped with Create React App. See the README.
It uses a backend server written with the Express framework using the Sequelize ORM.
Styling provided by styled-components
node addon.
-
Ensure you're running Node v16 or later.
-
Ensure you've got Postgres installed. Create a database and remember the name.
-
In your projects directory,
git clone [email protected]:kcarmonamurphy/react-todo.git
-
cd react-todo
. Create a.env
. Configure your.env
file. Here's an example:
PORT=7001 # CRA port
SERVER_PORT=7002 # Server port
DB_USER=kcmurphy # Typically the name of your user
DB_PORT=5432
DB_NAME=todos_express # From step 2
-
In your
react-todo
folder, runnpm install
. -
Open two new tabs and cd into the project directory. Run
npm run client
andnpm run server
to load both the frontend and backend portions of the code.