Skip to content

DouglasRollman/webDevFinal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GROUP MEMBER NAMES:

DOUGLAS ROLLMAN, JOEL URENA, TANGEER MOSOBBIR

GITHUB USERNAMES:

[email protected] [email protected] [email protected]

server-starter-code

This repository is the server (back-end) starter code for Final Project - Full-Stack CRUD Application.

Prerequisites

  • Install PostgreSQL (Postgres) [link] - required to run the database
  • Install Postman [link] - optional tool for API testing

1. Use the following process to import the Final Project server starter code repository to your GitHub account as the starter codebase

  1. Log on to GitHub
  2. Click on the + sign in the top right corner (next to the user icon)
  3. In the dropdown menu, select "Import repository"
  4. A new page will open
  5. In "Your old repository’s clone URL" field, enter: https://github.com/johnnylaicode/server-starter-code
  6. In "Your new repository details" field, enter your own repository name (e.g., "final-project-server")
  7. Click on the "Begin import" button to start the process
  8. After the process completed, your new "final-project-server" repository is created – as a completely independent codebase
  9. From this point on, you can clone your new repository, make changes, create feature branches, and create/merge pull requests

2. Use the information below to clone the starter codebase to your local machine

After creating the starter codebase "final-project-server" repository on GitHub (see above), you can clone it to your local machine. The instructions on how to clone a GitHub repository are available at this link.


3. Set up and run the server (back-end) application on your local machine

  1. Start a terminal (e.g., Git Bash) on your local machine.
  2. Go to the "final-project-server" folder, enter the command to install dependencies: npm install
  3. Start the server application by entering the command: npm start
  4. After the server application is successfully started, its access address is at: http://localhost:5001

Common Errors You May Encounter

Error: password authentication failed for user "postgres"

This error is related to the user password you set for your own local Postgres database.

Solution:

In the server-starter-code/database/utils/configDB.js file, replace the dBpwd value with your password for Postgres database.

  const dbName = 'starter-server';
  const dbUser = 'postgres';
  const dbPwd = '<your password>';

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •