Web card game, inspired by StarCraft with e-commerce implementations
This is a students group project presented as a final exam, making use of all the technologies learned at the Henry Bootcamp.
- Build a JavaScript App from scratch
- Connect learned concepts
- Learn and practice GIT workflow / teamwork
- Use scrum agile methodology
HTML, CSS, Javascript, React, Redux
Node.js, Express, Sequelize, JWT, Nodemailer, Passport
Socket.io, Firebase
PostgreSQL
IMPORTANT: Necesary version of node and NPM
- Node: 16.15.0 or higher
- NPM: 8.5.5 or higher
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.
- 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.
- Open the project console
- Inside
api
folder, run the command line,npm install
- Inside
client
folder, run the command line,npm install
- Inside
- 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/)
-
-
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:
- username :
[email protected]
- password :
asd123
- username :
- Landing-Page
- Register with new credentials or using your Google account
- Verify your email with the token you receive
- Explore the Store: Stars, Card Packs and Cards
- Product details
- Add products to your cart and pay with Stars or with MercadoPago
- Check your user profile: inventory (set decks), private chats, followed friends list and configuration
- Review cards you own
- Moderate users and store products, and check transactions as admin
- Enter de playroom, check the ranking list of users, your games' history and the public chat