Skip to content

Video Juego de Cartas basado en Starcraft, con implementacion de e-shop, login, chat global y privado, envio de email

Notifications You must be signed in to change notification settings

fabian179rc/StarCards

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StarCards

starcards

Web card game, inspired by StarCraft with e-commerce implementations

Introduction

This is a students group project presented as a final exam, making use of all the technologies learned at the Henry Bootcamp.

Project Objectives

  • Build a JavaScript App from scratch
  • Connect learned concepts
  • Learn and practice GIT workflow / teamwork
  • Use scrum agile methodology

Stack of Technologies

Front End:

HTML, CSS, Javascript, React, Redux

Back End:

Node.js, Express, Sequelize, JWT, Nodemailer, Passport

Connection:

Socket.io, Firebase

Database:

PostgreSQL

Starting Instructions

IMPORTANT: Necesary version of node and NPM

  • Node: 16.15.0 or higher
  • NPM: 8.5.5 or higher

BoilerPlate

The boilerPlate has two folders: api and client.

Inside api you must have to create a file called: .env that has the following form:

The boilerPlate has two folders: api and client.
Inside api you must have to create a file called: .env that has the following form:

DB_USER={postgresUser}
DB_PASSWORD={postgresPassword}
DB_HOST=localhost
DB_NAME={databaseName}
PORT={port}
PGPORT=5432
ACCESS_TOKEN={accesTokenMercadoPago}
purchaseCompletedURL={urlFront}/purchase-completed

You have to replace {postgresUser}, {postgresPassword}, {databaseName}, {port}, {accesTokenMercadoPago} and {urlFront} with your own credentials to connect to postgres database, and Mercadopago services. This file will be ignored by github, as it contains sensitive information (the credentials).

Inside client you must have to create a file called: .env that has the following form:

VITE_BASE_URL="http://localhost:{port}/" VITE_CHAT_URL="http://localhost:{port}/"

{port} must be the same as api.

Next

Connect the data base

  • Go to your postgres database manager and create a new database called starcards, this is the name of the database to which we will connect.

Install the necesary package to run it

  • Open the project console
    • Inside api folder, run the command line, npm install
    • Inside client folder, run the command line, npm install

Run the project

  • Open the project console
    • Inside api folder, run the command line, npm start

    • Inside client folder, run the command line, npm start (go to http://localhost:5173/)

For testing

  • You can find in api/index.js

    • const forceFlag = true;, switch it between " true " ( if you want reset database in each load ) or " false "( if you dont want reset database in each load )
  • You can use a testing admin user with login credentials:

Project Screens

  • Landing-Page

starcards


  • Register with new credentials or using your Google account

starcards


  • Verify your email with the token you receive

starcards


  • Explore the Store: Stars, Card Packs and Cards

starcards


  • Product details

starcards


  • Add products to your cart and pay with Stars or with MercadoPago

starcards


  • Check your user profile: inventory (set decks), private chats, followed friends list and configuration

starcards


  • Review cards you own

starcards


  • Moderate users and store products, and check transactions as admin

starcards


  • Enter de playroom, check the ranking list of users, your games' history and the public chat

starcards


About

Video Juego de Cartas basado en Starcraft, con implementacion de e-shop, login, chat global y privado, envio de email

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 84.4%
  • CSS 15.5%
  • Other 0.1%