Giter VIP home page Giter VIP logo

smnenko / gamemuster Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 18.88 MB

Web application uses Django, Twitter and IGDB API that parse games from IGDB, sort by categories and find tweets from Twitter.

Home Page: https://gamemusters.herokuapp.com/

Python 63.90% HTML 24.75% JavaScript 4.77% Dockerfile 0.30% Procfile 0.21% SCSS 3.15% Shell 0.14% CSS 2.78%
python django templates igdb-api games celery rabbitmq twitter-api

gamemuster's Introduction

GameMuster(game-web-site)

GameMuster is a web application that parse games and tweets from IGDB and Twitter.

Installation

Create empty django-application and get SECRET_KEY from it Clone repo from github using git

git clone https://github.com/smnenko/game-web-site.git

Configure python virtual environment (good practice) and run next command from root directory

pip install -r requirements.txt

Go to .env file and fill all fields

Example:

SECRET_KEY=mscb#cvbrtrtsxzcz#x*aw1@nrft#nnrtf95t#ndd0az^+
DATABASE_NAME=game-web-site
DATABASE_USER=postgres
DATABASE_PASS=postgres
DATABASE_HOST=localhost
DATABASE_PORT=5432

You also need to create PostgreSQL database with DATABASE_NAME that you filled

Run next commands in root directory (use python3 on linux os)

python manage.py migrate
python manage.py loaddata initial.json
python manage.py runserver

Go to https://localhost:8000/ and be fine =)

Or you can start with docker-compose

You need fill DATABASE_HOST to "db" (without quotes) after "=" and DATABASE_PORT to "5432" (without quotes) in .env file

docker-compose up --build

Screenshots

  • Main page Main
  • Login page Login
  • Signup page Signup
  • Profile page Profile
  • Musts page Musts
  • Game page Game

gamemuster's People

Contributors

semianenka avatar smnenko avatar

Watchers

 avatar

gamemuster's Issues

Let check search.

I can't get page with games, when I try to search.
I check this feature as authenticated and not authenticated user.

Can't create superuser for fresh DB

I try to run python manage.py createsuperuser and get
django.db.utils.IntegrityError: null value in column "group_id" violates not-null constraint

Hardcoded secret key

Check class Command(BaseCommand):
'client_secret': env('1lmsfzd2fkl0jfg78lq8kija2w1uhm'),

Login error

I get an 404 error when I try to login with wrong password.

I suggest to use from django.contrib import messages to notify user about wrong login.
Maybe you have better solution, for example you can use class LoginForm(AuthenticationForm):

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.