Provide Champion status via GraphQL.
Create postgresql/my_env.env
to configure postgresql.
POSTGRES_USER={username}
POSTGRES_PASSWORD={password}
POSTGRES_DB={dbname}
And execute docker-compose up -d
.
League of Legends information site
Add README which is included following contents.
Save champions image to random path. And let database to store it.
Now, database's username and password is hard coded like following.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'velkoz',
'USER': 'u_gem',
'PASSWORD': 'img_000',
'HOST': 'db',
'PORT': '5432',
}
}
We should use env file instead of hard cord.
To reduce data amount
Allowing edit champion data
Add following licenses notice.
And add LICENSE file (MIT) to project's license .
Django auto reloading not working now.
I received following error.
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 220, in ensure_connection
self.connect()
File "/usr/local/lib/python3.7/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 197, in connect
self.connection = self.get_new_connection(conn_params)
File "/usr/local/lib/python3.7/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/django/db/backends/postgresql/base.py", line 185, in get_new_connection
connection = Database.connect(**conn_params)
File "/usr/local/lib/python3.7/site-packages/psycopg2/__init__.py", line 126, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: could not connect to server: Connection refused
Is the server running on host "db" (172.18.0.2) and accepting
TCP/IP connections on port 5432?
It because of Django launch before PostgreSQL process be available.
Docker documentation say you can work around the problem with a wrapper script:
. So I should add script to wait postgresql process.
Add mutation to Skill and Champion. See documentation about mutation
Add end-to-end tests.
See https://www.django-rest-framework.org/api-guide/testing/.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.