Giter Site home page Giter Site logo

brummbq / vutuv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vutuv/vutuv

0.0 2.0 0.0 2.24 MB

vutuv is a social network service to host and share information about humans and organizations.

License: MIT License

JavaScript 0.90% Elixir 42.87% HTML 49.68% CSS 6.53% Shell 0.01%

vutuv's Introduction

Stories in Ready Build Status

vutuv

vutuv is a free, fast and open source social network service to host and share information about humans and organizations. It's hosted at https://www.vutuv.de. Please have a look at our blog for more information about it.

Do you want to participate in the development?

Great! We encourage new developers to participate in this project. Even a one line fix or improvement makes a big difference. Please do not hesitate to contact [email protected] if you have any questions. Otherwise just create a pull request. You find a document with additional information about this in the file faster_pr_reviews.md.

We use MIT License.

And please do add an issue for any problem or feature request.

We run a private Slack channel. Once you get involved by commiting code we'll invite you to it.

Development How-To

Vutuv is a Phoenix Framework application. Please install the following software first:

Make sure that your database configuration in config/dev.exs is correct.

Create your secret config

In order to compile your application, You'll need to create a secret.config file. This file isn't included with the source files. It wouldn't be secret if it was!

Go to the /config directory and create two files named dev.secret.exs and prod.secret.exs with this content:

use Mix.Config

Quickstart with Docker

You can also bootstrap your development environment with docker, without installing any dependencies on your host system. You need:

Now you should be able to build and start vutuv with this command:

$ docker-compose up -d

Docker Compose already configures a mariadb database for you, installs all required dependencies and migrates the database schema. You can access the application as usual on http://localhost:4000

Run tests with docker

To execute the tests, first connect to the running app container and run them inside the container:

$ docker exec -it vutuv_app_1 bash
$ MIX_ENV=test mix test

Configure your SMTP setup

The system uses the Bamboo email library by thoughtbot to send emails via SMTP.

Development

In the development environment emails are not sent to an actual SMTP server but displayed in the browser via Bamboo.EmailPreviewPlug. To see which emails have been send you have to visit http://localhost:4000/sent_emails

Production

The default setup is a local SMTP server on port 25 with no authentication. You can change this in config/prod.exs in the following section:

config :vutuv, Vutuv.Mailer,
  adapter: Bamboo.SMTPAdapter,
  server: "127.0.0.1",
  port: 25,
  username: "",
  password: "",

For more information on the these settings, consult the bamboo docs.

Start the application without Docker

You should now be able to run the application by following the steps below.

$ cd vutuv
$ mix deps.get
$ mix deps.compile
$ npm install
$ mix ecto.create
$ mix ecto.migrate
$ mix phoenix.server

First steps in the application

You need to register as a new user on http://localhost:4000

After creating a couple of example users you can login to them and connect to other others by browsing to their page and click on the "Follow" button.

To view the admin control panel, you'll need to flag your account as an admin. This can be done with the following sql query: update users set administrator = true where id = <user_id>; replacing <user_id> with your user id.

You can then view the admin control panel at http://localhost:4000/admin

vutuv's People

Contributors

brummbq avatar cjfreeze avatar oliverandrich avatar tronicum avatar waffle-iron avatar wintermeyer 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.