Gverse is a fully functional, intuitive, engaging full-stack application through which game enthusiasts can browse games, manage their personal account, and a library of their favorite games. The application leverages the PERN stack, utilizes the Sequelize ORM and JSON Web Tokens for Authentication and Authorization.
- PostgreSQL
- Express.js
- React (bootstrapped with Create-react-app)
- Node.js
- Sequelize
- Heroku
Node, npm, and PostgreSQL are necessary to run this application. If needed, please follow the installation guidelines in the Env-requirements section section.
Once the requirements are met, we're ready to run the application. Follow the steps below to set up and launch the application server.
Copy this repo's HTTPS URL and clone it onto your local machine's terminal:
git clone https://github.com/sbassong/g-verse.git- Change directory into the newly cloned folder's client folder then install dependencies
cd g-verse/client npm install - Run the app on port 3000
npm start
-
Change directory into the newly cloned folder then install dependencies
cd g-verse npm install -
In the g-verse root folder, add a
.envfile containing both the following variablesSALT_ROUNDS=<12 or 16> APP_SECRET="<WhateverCombinationOfCharactersYouWant.Add889aAndSpecialChars&&##!Throughout>"
-
Use the sequelize-cli to create the
g-verse_developmentdatabase on postgres (databases have a different name based on environment. Can be found inconfig/config.json).PostgreSQL needs to be running from here on out
sequelize db:create
-
Migrate the database with app's models
sequelize db:migrate
-
Recommended: Run the following to seed the database with some initial games. (already set up in the
seeders/20210924141036-gamesfile)Feel free to modify the game objects or add your own, following the Game model guidelines
sequelize db:seed:all
-
Finally, run the server on port 3001
npm run dev
- Integrate a UI Library
- Polish User authentication and authorization
- Add UX features, alerts, tooltips...
- Full update to MUI (in progress)
- Filter by Sidebar
- Inspiration: GameStop, Rawg
- Pictures: Google Images
- Logo: Canva
- Fonts: Google Fonts
Node, npm, and postgreSQL are necessary to run this application. please follow the installation guidelines below:
-
Recommended: Go to the Node Version Manager (NVM) github and follow the instructions to install both both Node and npm
-
Alternatively: Go to Node.js and use the installer appropriate for your system to install node and npm
Verify that both node and npm have been installed by running the following in your CLI
node -v npm -v
-
Head to the official PostgreSQL documentation, choose your operating system family and follow your preferred installation route
-
My preferred installation method for Linux/MacOS:
-
install homebrew by running this command in your termninal
/bin/bash -c "$(curl -fsSL https://raw githubusercontent.com/Homebrew/install/HEAD/install.sh)" -
follow the following steps one by one
use brew to install postgres
brew install postgresconfirm installation with:
postgres --versionTo start Postgres and keep it running on your machine
brew services start postgresqlTo test the above, create a database with your local profile/account name
createdb <account name>Confirm you can enter the postgres shell with the following command:
psqlExit shell with:
-