manga

command module
v0.0.0-...-3426d20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2018 License: MIT Imports: 3 Imported by: 0

README

❤ NyaaPantsu Manga ❤

NyaaPantsu is intended as a possible replacement for Bato.to written in the Go programming language. It may be best described as a manga content management system, permitting third-parties to upload and manage manga translation, to be made available to the world (or not, thats on them).

Installing

NyaaPantu Manga requires the following software:

  • PostgreSQL
  • Go Programming Language
Setting up the database

The installation of the software is not covered here, please consult the appropriate operating system or software document for software installation.

By default, NyaaPantsu attempts to connect to PostgreSQL utilizing the configuration stored in /models/default.go, located within the root project folder. It is highly recommended to alter these values if deploying a private server (checking out the code is covered below). By default the connection configuration is as follows:

Port: 5432
Username: manga
Password: manga
Database: manga

Presuming that Postgresql is properly installed and available on the system path, this may be done utilizing the following instructions:

pg_ctl -o "-p 5432" start
createuser -p 5432 -U postgres -D -P -W manga
createdb -p 5432 -U postgres -O manga manga

Please note that the previous instructions assume the default configuration of Postgresql, if you have altered the superuser username and password, please use the appropriate information in the previous instructions (-U superUsername -p superPassword). Should some other problem arise, please check the FAQ below or consult the appropriate PostgreSQL documentation.

Getting the source

Execute go get https://github.com/NyaaPantsu/manga to retrieve the code from the github repo. By default the project will be checked out into GOPATH/src, it is possible to determine the exact value of GOPATH by executing go env GOPATH. Once having determined the appropriate value for GOPATH, execute the following instructions replacing GOPATH for the value previously determined:

psql -p 5432 -d manga -U manga -f GOPATH/schema.sql
go install GOPATH/src/NyaaPantsu/manga
openssl genrsa -out keys/rsakey.pem 2048
openssl rsa -in keys/rsakey.pem -pubout > keys/rsakey.pem.pub

It is assumed that the PostgreSQL server was set-up with the configuration given above, if this is not the case, please update the psql command above to reflect the appropriate configuration.

Once completed the above steps, the NyaaPantsu Manga server executable may be found in GOPATH/bin as projectName.exe where projectName is the name of the root source folder. By default this is manga, so the executable will by default be named manga.exe. To check that all is running as appropriate simply open a browser and visit localhost:Port where Port is the value for httpport stored in /conf in the project root folder. By default this value is 8080.

FAQ

I get an error stating pg_ctl: no database directory specified and environment variable PGDATA unset.

Try setting the PGDATA system variable using setx PGDATA <DIR> on Windows and export PGDATA=<DIR> where DIR is the absolute path to some directory where the server configuration and state will be stored.

I get an error stating pg_ctl: another server might be running; trying to start server anyway.

If on Windows, try running pg_ctl stop. If that fails check the PGDATA variable using echo %PGDATA% on Windows or echo $PGDATA on Linux and then run pg_ctl -D <PGDATA_DIR> stop where <PGDATA_DIR> is the value returned from echo. Assuming no error occurs, attempt to execute the instruction that reported the error again.

Contributing

Project Structure

Contact

Issue Tracker: https://github.com/NyaaPantsu/manga/projects/1

Discord: https://discord.gg/QvQPQS

Irc:

Server: irc.rizon.net
Channel: #manga-dev

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
@APIVersion 1.0.0 @Title beego Test API @Description beego has a very cool tools to autogenerate documents for your API @Contact astaxie@gmail.com @TermsOfServiceUrl http://beego.me/ @License Apache 2.0 @LicenseUrl http://www.apache.org/licenses/LICENSE-2.0.html
@APIVersion 1.0.0 @Title beego Test API @Description beego has a very cool tools to autogenerate documents for your API @Contact astaxie@gmail.com @TermsOfServiceUrl http://beego.me/ @License Apache 2.0 @LicenseUrl http://www.apache.org/licenses/LICENSE-2.0.html
utils
zip

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL