Skip to content

A full stack solo project built using the PERN stack (PostgreSQL, Express, React, Node). Shield Knight is a simple web browser video game with one goal, reach the dragon!

Notifications You must be signed in to change notification settings

BlakexLim/Shield-Knight

Repository files navigation

full-stack-project

A simple web browser game utilizing the PERN stack.

Goal of the game is to reach the dragon as quickly as possible. There are obstacles such as mountains and fireballs you must overcome.


Demo


Developing on this project

Clone into your code editor container volume

  1. Click the green/blue <> Code button, then copy HTTPS/SSH URL
  2. Open your code editor
    1. Select Clone Repository in Container Volume...
    2. Paste HTTPS/SSH URL, click Clone git repository from URL

Run and test project setup

Getting Started

  1. Install all dependencies with npm install.

Create the database

  1. Start PostgreSQL
    sudo service postgresql start
  2. Create database
    createdb shieldKnight

Start the development servers

  1. Start all the development servers with the "dev" script:
    npm run dev
  2. Later, when you wish to stop the development servers, type Ctrl-C in the terminal where the servers are running.

Verify the client

  1. A React app has already been created for you.
  2. Go to the browser and enter http://localhost:5173/, the app should be running

Set up the database

  1. In a separate terminal, run npm run db:import to create the tables.

  2. Use psql to verify the tables were created successfully.

     psql -d shieldKnight -c '\dt'
    

About

A full stack solo project built using the PERN stack (PostgreSQL, Express, React, Node). Shield Knight is a simple web browser video game with one goal, reach the dragon!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published