Git Product home page Git Product logo

manga's Introduction

❤️ 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

manga's People

Contributors

ewhal avatar betaredex avatar majestrate avatar tkdurg avatar ewasion avatar

Watchers

Joielechong 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.