Git Product home page Git Product logo

Fan Universe

Prerequisites

Running Linux is strongly recommended. You'll likely have to jump through hoops to set the environment up elsewhere.

Docker

Run docker-compose pull in the project root to fetch all dependencies.

Development tools

Please read the documentation for each plugin; they may require additional dependencies to be installed.

After getting asdf and plugins, run asdf install in the project root.

Getting up and running

Start containerized services:

docker-compose up

Prepare your environment (you only need to this once):

  • Increase the vm_max_map_count kernel setting to at least 262144 (refer to this article for more information)
# Install dependencies
mix deps.get
( cd assets && npm install && npm run rollup-vendor )
# Temporary hack until FA 5 lands
cp -r assets/node_modules/font-awesome/fonts priv/static

# Set up the database
mix ecto.create && mix ecto.migrate

# Create Elasticsearch indexes
mix run -e "Fanuniverse.ImageIndex \
|> Elasticfusion.IndexAPI.create_index() \
|> IO.inspect()"

# Create local storage dirs
mkdir priv/avatars priv/images priv/cache

Finally:

# Either boot up the server (bound to localhost:4000)...
mix phx.server

# ...or run the test suite.
mix test

# You should _not_ have both running at the same time!

Fan Universe's Projects

sapphire icon sapphire

A Redis-based ordered autocomplete service

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.