+
Skip to content

ancile-project/ancile

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ancile

Documentation for Ancile:

Deployment

I think it's a good start to deploy Ancile locally first and then move to the server version. Steps are similar except you need to obtain certificates differently.

  1. Setup Docker and Elixir and Node.JS.

  2. Fetch dependencies: mix deps.get and build the project: mix.

  3. Get SSL certificates (run mix phx.gen.cert locally and use LetsEncrypt remotely)

    1. For the local deployment just check SSL location in dev.exs

    2. Create empty dev.secret.exs. For remote deployment put the following config:

      config :ancile, AncileWeb.Endpoint,
        http: [port: 4000],
         https: [
            port: 4001,
            cipher_suite: :strong,
            keyfile: "/home/ubuntu/certs/privkey.pem",
            cacertfile: "/home/ubuntu/certs/chain.pem",
            certfile: "/home/ubuntu/certs/cert.pem"
             ],
         url: [
           host: "{your_hostname}"]
    3. Don't try to commit dev.secret.exs, as then we can have separate deployments running Ancile without code conflicts and will keep our keys private.

  4. Add integration of Data Providers using configs from LINK (ask Eugene for help, ideally we should move it inside Ancile later)

    1. Register an app on CDS/GitHub/Azure

    2. You can have same apps for both desktop and remote deployment, just make sure to update CallBack URL accordingly. Create/Modify dev.secret.exs and append the following config:

      config :ancile,
             :pow_assent,
             providers: [
               github: [
                 client_id: "client_id",
                 client_secret: "client_secret",
                 strategy: PowAssent.Strategy.Github
               ],
             campus_data_service: [
                  client_id: "client_id",
                  client_secret: "client_secret",
                  strategy: Ancile.PowAssentProviders.CampusDataService
               ]
             ]
  5. Configure PostgresSQL docker: sh utils/postgres/create_docker_db.sh

  6. Add new tables to your database: mix ecto.migrate

  7. Install Node.js dependencies: cd assets && npm install. Don't forget to go back: cd ...

  8. Start the server: mix phx.server

Development

Let's just review each others code and verify that it works.

Ideally, we will need to have better testing, but will see how it goes.

About

Implementing use-based privacy for ubiquitous computing.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 8

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载