Giter Site home page Giter Site logo

anikura-server's Introduction

Anikura Server

Anikura is a multimedia server written in PHP, using the Symfony framework.

Requirements

  • PHP 8
  • Composer
  • Node.js
  • Yarn
  • PostgreSQL (database)

Installation

TODO: add Docker installation guide

Manual installation

  1. TODO: add requirements check

  2. Install dependencies with Composer

# for development
composer install

# for deployment
composer install --no-dev --optimize-autoloader
  1. Create a .env.local file and edit it to your needs. (It won't be commited to any git repository.)

(IMPORTANT: if you're deploying the app, you MUST set APP_ENV to prod and edit APP_SECRET.)

cp .env .env.local
  1. Create a database and migrate tables.
php bin/console doctrine:database:create
php bin/console doctrine:migrations:migrate

You can also load sample data fixtures when developing:

php bin/console doctrine:fixtures:load
  1. Install Node.js dependencies with Yarn:
yarn
  1. Build the front-end bundle with Encore (if you don't plan on modifying JS, CSS etc, then you will need to perform this only once)
# for development
yarn dev

# for deployment
yarn build

Watching for changes is also possible:

yarn watch
  1. Serve the public catalog
# for development
php -S localhost:8000 -t public

# for deployment, you will want to use Apache, nginx, Caddy etc

And that's it! Now you can use Anikura.

TODO: actually not (at least not in production) - add admin user creation

anikura-server's People

Contributors

karmek-k avatar

Watchers

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