This is the server-side of our app, rent_my_stuff_api. The technology used on the server-side are, as follows,
The members who did this project are Robert Servado and Roberto Cervantes Betancourt
We did our Project Planning using Miro, RentMyStuff
Install dependencies with,
npm install
"bcrypt": "^5.1.0",
"body-parser": "^1.20.1",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"dotenv": "^16.0.3",
"express": "^4.18.2",
"express-session": "^1.17.3",
"morgan": "^1.10.0",
"nodemon": "^2.0.20",
"pg": "^8.8.0"
To load all of the information within the db directory and go to the root directory of 'rent_my_stuff_api',
and then connect to your ,
psql <PG USER>
Create a database within psql
CREATE DATABASE rentmystuff;
Copy the .env.example file to .env and fill in the necessary PostgreSQL configuration. The node-postgres library uses the environment variables by default.
PORT=3005
PGUSER=labber
PGPASSWORD=labber
PGHOST=localhost
PGDATABASE=rentmystuff
PGPORT=5432
To load all of the information within the db directory go to the root directory of 'rent_my_stuff_api',
and then connect to your ,
psql <PG USER>
and then connect to the rentmystuff DATABASE,
\c rentmystuff
within psql run the following codes to create the table setup and seeding information,
\i db/schema/create.sql
and,
\i db/seeds/seeding.sql
You should have all the needed information for the database
Running the server normally,
npm start
- List of goals and milestones will be displayed here soon