Git Product home page Git Product logo

archlord's Introduction

Building the project

Requirements:

  • Windows.
  • Visual Studio 2022.
  • PostgreSQL 9.6

After installing the required programs, open msvc/archlord.sln, set platform to x64 and build the solution.

Installation

Preparing the database

PostgreSQL 9.6 is required to run the server. Later versions of PostgreSQL may or may not work. After installing PostgreSQL, do not forget to add its bin directory to your path.

After installation, open a command prompt and make sure that your path is properly setup by typing:

psql --version

You should get something similar to psql (PostgreSQL) 9.6.9. Next, type following to create database and user:

createuser -U postgres aluser
createdb -U postgres archlord

Access PostgreSQL shell with:

psql -U postgres (type in your password)

Provide privileges to user:

ALTER USER aluser WITH ENCRYPTED PASSWORD 'pwdpwd';
GRANT ALL PRIVILEGES ON DATABASE archlord TO aluser;

Now that the database and user are ready, we can create required tables. First, logout with:

\q

Login with:

psql -U aluser -d archlord

Create required tables:

CREATE TABLE accounts (
	account_id VARCHAR(50) PRIMARY KEY NOT NULL,
	data BYTEA
);

CREATE TABLE guilds (
	guild_id VARCHAR(50) PRIMARY KEY NOT NULL,
	data BYTEA
);

Server configuration

Open (repo)/config with any text editor. ServerIniDir and ServerNodePath are relative to project directory so they can be skipped. ..ServerIP should be changed to your machine's IP address. DBName, DBUser and DBPassword can be skipped as long as you have followed instructions above.

Creating a test account

After preparing the database, compiling the project and editing configuration file, it is now possible to create an account and enter the game.

In your config file, you will see 'WebServerIP' and 'WebServerPort'. These will be used to create an HTTP server that can handle certain GET requests. You can use your browser to create a test account with:

WebServerIP:WebServerPort/createaccount?accountid=..&pwd=..&email=..
ex: 192.168.1.35:8080/createaccount?accountid=hunter&pwd=password&[email protected]

archlord's People

Contributors

osiy1996 avatar

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.