This project is currently a work in progress.
Current stage: All current project setup should be done, docker containers, Recat frontend, Django backend with all test suites and tools ready, and postgresql database has been set up. Users are able to signup, log in and log out. Authentication token is saved in cookies, and logged in users have different access rights then those that are not.
Socket connections between frontend and backend have been set up and soon as users enter the /game path they are added to the pool of users observing the table. All the base graphics for the poker table, stacks, users and card have been added to the platform and are generated based on passed props that will later come from the game state from the backend.
Only dependency to run the application is Docker.
To build the application run:
docker-compose build && docker-compose up
The frontend will run on port 8080 (can be changed in docker-compose file).
localhost:8080
The backend will run on port 8000 (can be changed in docker-compose file).
localhost:8000
Valid Routes:
- /admin - Login as superuser(admin)
- /api/user/create - Create user
- /api/user/me - Used to update user (needs token for authorization)
- /api/user/token - Returns the token of user on valid user data
Create superuser:
Command:
docker-compose run backend sh -c "python manage.py createsuperuser"
It will ask you for username and password. From there you can create, delete and change users.
- Created with React
- Configured with webpack and babel
- Tested with jest and linting with eslint
- Created with Django
- Tested with Pytest and Django
- PostgreSQL