Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
bin
 
 
 
 
db
 
 
lib
 
 
log
 
 
 
 
 
 
 
 
 
 
tmp
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README

I don't know how you got here, but I doubt you'll find anything useful to you here.

This is a website that I hacked together for my ski club, in order to ease selling stuff between members.

The code is not really meant to be any of the following :

  • Clean and following best practices
  • Properly covered by tests
  • Meant to be reusable by anyone else
  • Easily translatable
  • Easily readable / extendable

Feel however free to use it !

License

This website is licensed under AGPLv3+

Local dev

Use rbenv to setup local env, install postgres db

rbenv install
gem install bundler
bin/bundler install

Useful commands :

  • bin/rails server : start the local server
  • bin/rails console : open a rails console
  • bin/bundle exec annotate --models : re-annotate model files after a db structure change

Postgres db setup

  • Install postgres
  • `sudo -u postgres createuser -d <your_username>
  • bin/rails db:create

Updating dependencies

  • If you want to update the bundler version too (may be needed for deployment), first rm Gemflie.lock
  • bin/bundle update
  • bin/rails db:migrate RAILS_ENV=development

Deploying

Deployment is made with ansible (min version 2.8).

The current way to do it is quite ugly (locally build a docker image, and start it in the host network namespace.

Create an inventory file, then :

ansible-playbook -i your.inventory playbook.yml

About

Plateforme d'échange et de revente de matériel d'occasion très simple et basique

Resources

License

Releases

No releases published

Packages

No packages published