GithubHelp home page GithubHelp logo

spacha / poliisiautoserver Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 221 KB

A server for an application where users can report bullying to a trusted adult.

License: BSD 2-Clause "Simplified" License

PHP 97.50% JavaScript 0.11% Blade 2.39%

poliisiautoserver's Introduction

Important notice!

This is a prototype and must not be used in practice under any circumstances! The developers of this application do not take any responsibility, legal or otherwise, of using this application!


Poliisiauto server

Logo of Poliisiauto

A server for an application where users can report bullying to a trusted adult.

See this Google Drive document for initial server specification.

This server offers an API for various clients such as mobile applications (specifically for PoliisiautoApp). The API has a public endpoint for authentication and a large set of protected endpoints for authenticated users.

See the complete API description here.

Getting started

This software is build on Laravel 9 and requires a (PHP) web server capable of running it as well as a MySQL database. See the requirements in more detail in Laravel documentation: https://laravel.com/docs/9.x.

Project initialization

Access your server using ssh or other means. Navigate to the folder where you want to install the project.

Clone the project:

$ git clone https://github.com/Spacha/PoliisiautoServer.git

Install the dependencies using composer.

$ cd PoliisiautoServer
$ composer install

Create a .env file by copying the .env.example (see here for more information)

$ cp .env.example .env

Change necessary values in the .env files. Most important lines are these:

DB_DATABASE=poliisiauto
DB_USERNAME=root
DB_PASSWORD=secret

These should obviously match your database configuration. You need to have a database with that name before it can be initialized.

Generate an application key:

$ php artisan key:generate

Migrate the database (see here for more information):

$ php artisan migrate:fresh

NOTE: You may need to change the permissions of some folders (usually everything under storage).

$ chmod 0777 -R storage

Running tests

The tests can be run by (see here for more information):

$ php artisan test

Database seeding

If you want, you can "seed" the database with sample users and organizations using:

$ php artisan db:seed

License

PoliisiautoSERVER is licensed under a 2-clause BSD license. See LICENSE for more details.

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.