Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
Pickweaver
Pickweaver
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 36
    • Issues 36
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 1
    • Merge Requests 1
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Framasoft
  • PickweaverPickweaver
  • Wiki
    • Install
  • Installation

Last edited by Tam-Kien Duong Mar 30, 2018
Page history

Installation

Until releases are made, we need to use the

Start with fetching the latest sources:

git clone git@framagit.org:tcit/storia.git && cd storia

You need to have a postgresql user, and a postgresql database. Defaults credentials for the development environment are:

  • user: elixir
  • password: elixir
  • database: storia_dev

app

Install front-end dependencies

cd js && npm install

Start dev server

npm start

Visit http://localhost:8080

api

Install server

mix deps.get
mix deps.compile

Create database tables

mix ecto.migrate

Launching dev server

mix phx.server

Now open your browser at http://0.0.0.0:4000

Launching production server can be made with

MIX_ENV=prod PORT=4001 elixir --detached -S mix do compile, phx.server

You can change the port on which elixir is running on, but you'll probably want to setup a reverse proxy to handle things properly.

Docker

Install and run a postgres server

docker pull postgres
docker run --name elixir_pg -e POSTGRES_USER=elixir -e POSTGRES_PASSWORD=elixir -e POSTGRES_DB=storia_dev -p 5432:5432 -d postgres 
Clone repository
  • Contributing
    • Front End
    • Translations
  • Install
    • Installation
    • Requirements
  • Home