distributed-client-server's Introduction
Install My-Sql Server sudo apt-get update sudo apt-get install mysql-server set root password as root Install Mysql Libraries for C sudo apt-get install libmysqlclient-dev Create database Go to the folder containing script.sql Login to mysql Run following command ->source script.sql Compiling Code: There are 3 folders client ,database ,server. Client contains client code ,database contains key-value store code , server contains frontend server code Step 1: run database server with port number (Assuming you are in code directory) Currently there are 3 directoy in database directory (all contains same code but different database.db) -> cd database/server-1 -> g++ database.cpp -o database -lpthread ->./database port_no Make copy of database directory on as many server as you want as key value store. You can make multiple copies on same server and run it with different port Step 2: Write database server configuration to frontend server Update the key-value server configuration in server.conf in server directory in specified format ip_address port from_char to_char Note :- from_char and to_char are in lowercase. Step 3: Compiling and running front-end server code -> cd ../../server -> g++ frontend.cpp -o frontend `mysql_config --cflags --libs` -> ./frontend port_no Step 4: Compiling and running client code Make as many client as required -> cd ../client -> gcc client.c -o client -> ./client frontend_server_ip_add frontend_server_port
distributed-client-server's People
Forkers
skyformat99Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.