aboutsummaryrefslogtreecommitdiff
path: root/posts/po4.md
diff options
context:
space:
mode:
Diffstat (limited to 'posts/po4.md')
-rw-r--r--posts/po4.md79
1 files changed, 39 insertions, 40 deletions
diff --git a/posts/po4.md b/posts/po4.md
index c9770dc..a32331a 100644
--- a/posts/po4.md
+++ b/posts/po4.md
@@ -1,8 +1,3 @@
-[meta]: <title> (po connect-4 readme)
-[meta]: <tags> (po4, po-connect-4, readme, github)
-[meta]: <date> (April 1 2021)
-[meta]: <author> (Loekaars)
-
# PO connect-4
![](./banner.png)
@@ -14,8 +9,8 @@
</p>
> Some of this project's code is in Dutch (commit messages, documents etc.),
-along with the whole website. This was originally a school project, but I'm
-going to keep maintaining this project during my exams and summer break
+> along with the whole website. This was originally a school project, but I'm
+> going to keep maintaining this project during my exams and summer break
## Planned features:
@@ -41,7 +36,8 @@ going to keep maintaining this project during my exams and summer break
- [NextJS](https://nextjs.org/) for static react pages and html page routing
- [socket.io](https://socket.io/) for bidirecitonal communication during a game
- [SQLite](https://sqlite.org/index.html) for the database
-- [nginx](https://nginx.org/en/) for serving static files generated by nextjs, caching and reverse proxy
+- [nginx](https://nginx.org/en/) for serving static files generated by nextjs,
+ caching and reverse proxy
A design prototype of the website can be found on
[Figma](https://www.figma.com/file/rTciVQApAe6cwrH1Prl5Wn/4-op-een-rij?node-id=0%3A1).
@@ -52,8 +48,8 @@ moving and updating it to be in api/readme.md.
## setup
-To set up this project you'll need to install npm and pip dependencies, pull
-all git submodules and compile voerbak and the sql extensions.
+To set up this project you'll need to install npm and pip dependencies, pull all
+git submodules and compile voerbak and the sql extensions.
> I haven't figured out how to run this project on Windows, so please install
> [WSL](https://docs.microsoft.com/en-us/windows/wsl/install-win10) if you want
@@ -70,8 +66,8 @@ To start the setup process you only need to run the following command:
./configure
```
-The script calls sudo and apt install so some password input/manual
-confirmation is required, but most of the install should be automated.
+The script calls sudo and apt install so some password input/manual confirmation
+is required, but most of the install should be automated.
### manual setup (other distro's)
@@ -79,40 +75,44 @@ If your disto doesn't use the `apt` package manager, you can still run this
project by following these steps:
0. `git clone https://github.com/lonkaars/po-4-op-een-rij`
-1. Make sure you have [python](https://python.org/downloads) (with pip and venv) installed.
-2. Make sure you have [nodejs](https://nodejs.org/en/download) (with npm) installed.
+1. Make sure you have [python](https://python.org/downloads) (with pip and venv)
+ installed.
+2. Make sure you have [nodejs](https://nodejs.org/en/download) (with npm)
+ installed.
3. Make sure you have [nginx](https://nginx.org/en/) installed.
-4. Make sure you have [make](https://www.gnu.org/software/make/) and the gnu c compilers [gcc](https://gcc.gnu.org/) installed (most distro's will have these by default).
+4. Make sure you have [make](https://www.gnu.org/software/make/) and the gnu c
+ compilers [gcc](https://gcc.gnu.org/) installed (most distro's will have
+ these by default).
5. Install typescript, react-scripts and yarn:
- ```sh
- npm i -g typescript yarn
- ```
+ ```sh
+ npm i -g typescript yarn
+ ```
6. Create a new python virtual environment and install pip modules:
- ```sh
- python -m venv venv
- source venv/bin/activate
- pip install -r requirements.txt
- ```
+ ```sh
+ python -m venv venv
+ source venv/bin/activate
+ pip install -r requirements.txt
+ ```
7. Install node modules:
- ```sh
- yarn
- ```
+ ```sh
+ yarn
+ ```
8. Build voerbak:
- ```sh
- cd voerbak
- make
- ```
+ ```sh
+ cd voerbak
+ make
+ ```
9. Download submodules:
- ```sh
- git submodule init
- git submodule update
- ```
+ ```sh
+ git submodule init
+ git submodule update
+ ```
10. Initialize database and build SQL extensions:
- ```sh
- cd database
- ./init_db.sh
- make
- ```
+ ```sh
+ cd database
+ ./init_db.sh
+ make
+ ```
## How to start
@@ -134,4 +134,3 @@ sudo nginx -c $PWD/nginx.conf
# this command is also in ./configure
sed "s/user nobody/user $(whoami)/" -i nginx.conf
```
-