A small application used by the Lille's local police (but it could be used by anybody with a bit of rewording)
- Team & ranks management
- Login-less access for agents (using a private magic-link)
- Logged access for managers
- Recurring absences
- Chat & room system (with e-mail notifications and broadcast tools)
- Global dashboard (latest messages, most occuring absences)
Ruby, node and yarn should be installed.
This project was built using ASDF.
If you're also using ASDF, make sure all the required plugins are also installed and run asdf install
You might also check .tool-versions
if you're using another version manager.
- Clone the repository
- Create and fill
.env
with
DATABASE_USERNAME=
DATABASE_PASSWORD=
DATABASE_HOST=
DEFAULT_ROOM_ID=1
- Run
bin/rails setup
andyarn install
- Run
bin/rails db:seed
- You should be able to run the app using Foreman
foreman start -f Procfile.dev
- a. The first user must be manually created through
bin/rails console
using
User.create!(
email: "fillme@example.com",
password: "my_secret_password",
password_confirmation: "my_secret_password",
rank: :superadmin
)
- b. Users can also be registered using the signup form, but the account must then be manually activated through the interface by an admin or superadmin.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
- The template used for this README was created by @othneildrew