Create full stack apps with React and Express. Run your client, server and do a restart of your dump db to have a full-stack project working in minutes
You can follow this instructions and code along with the video - setup instructions working
-
Go to your source directory in your terminal and run the command
git clone https://github.com/Yosolita1978/React-Express-PairProgramming.git NAMENEWDIRECTORY
-
To clean your folder from the owner git, run the command
rm -rf .git
( - You don't want to work with the git of the owner of this Template)
-
Go to the server folder in the project (
cd server
) and run the commandnpm install
-
Inside your server folder, create an .env file with
touch .env
-
Inside your server folder, open the file
.env.example
and copy the file there. -
Inside your .env file, paste the string from .env.example and change the variables with the values from the project. For this template, the name of your db is
techtonica1
. -
BACK TO THE TERMINAL - To restore the DB dump file that the project already contain, just run the command
psql -U postgres -f db.sql
. Make sure that you have your Postgres password on hand. The psql console will ask you for your password. If you had configured your postgres without password just run the commandpsql -f db.sql
-
At this point you can run the command
npm start
to run your server and it should look like this.