GithubHelp home page GithubHelp logo

thpark's Introduction

Team 12 Theme Park Management System Database Project

Team Members

  • Esai Hernandez
  • Sunny Tran
  • Andrew Vieira
  • Erin Nebres
  • William Lam

Website: https://www.tpmanagement.app/login

Github Repository: https://github.com/AndrewVieira/thpark

Where is our database file and frontend code?

  • Our most recent database file is in the database folder with the name thparkdb.dump (not the old_versions folder!)
  • The client-side code is in the components and pages folders
  • The server-side code in the server.js file and server folder

File Descriptions

Both the client and server code are written in Javascript. While Javascript is usually a client-side language, we used a Javascript runtime environment called Node.js to run the server code in Javascript.

The server.js file is where we make our database connection and establish the routes for our project

The server/controllers files contain the functions used to query the database.

The pages folder contains the code for the webpages.

The files in the components folder contains the code/files for the layout, widgets, utilities, or resources that are used on the webpages.

The package.json file contains information about the project environment, including a list of dependencies.

Tools Used

To Install and Run

  1. Install PostgreSQL on your computer. Create a database called thparkdb, then import the database dump file we provided
  2. Install Node.js (https://nodejs.org/en/)
  3. Open command prompt, and change the directory to where you saved the repository (where the package.json file is)
  4. Enter "npm install" in the command prompt where the directory the project is to automatically install all packages required
  5. Enter "npm install -g nodemon", the nodemon package is required to run the project on the localhost
  6. Open the server.js file, starting on line 43, type in your credentials for your localhost database. The code should look something like this:
const cn = {
	host: 'localhost',
	port: 5432,
	database: 'thparkdb',
	user: 'postgres',
	password: 'ezpasswrd123'
};
  1. To run, in the directory where the server.js file is, enter the command "nodemon server.js" in the command prompt This command will run the project in development mode. Pages load slowly while in development mode. Wait for the command prompt to say "Server is ready on port: 3000"
  2. Visit http://localhost:3000 to see the project

thpark's People

Contributors

andrewvieira avatar esherna7 avatar gearedformusic avatar sunnytran avatar weeyumb avatar

Watchers

 avatar  avatar

Forkers

esherna7

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.