https://github.com/blegat/mathraining
Site interactif avec théorie, exercices et problèmes
https://github.com/blegat/mathraining
mathematics
Last synced: 3 months ago
JSON representation
Site interactif avec théorie, exercices et problèmes
- Host: GitHub
- URL: https://github.com/blegat/mathraining
- Owner: blegat
- Created: 2013-03-05T17:51:22.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2024-10-20T17:17:54.000Z (8 months ago)
- Last Synced: 2024-10-20T20:59:18.340Z (8 months ago)
- Topics: mathematics
- Language: Ruby
- Homepage:
- Size: 9.6 MB
- Stars: 51
- Watchers: 6
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Mathraining
============
[](https://github.com/blegat/mathraining/actions/workflows/ci.yml)
[](https://codecov.io/github/blegat/mathraining)Description
-----------
Code source de [Mathraining](http://www.mathraining.be),
le site interactif d'initiation à la résolution de problèmes mathématiques avancés.Vous êtes libres et encouragés à participer à son développement en soumettant
des bugs ou suggestions d'amélioration.How to test the website locally
-------------------------------
First you need to clone the github repository (or a fork of it) on your computer:
```sh
$ git clone https://github.com/blegat/mathraining
```
In the created folder 'mathraining', you should install the needed 'gems':
```sh
$ bundle config set --local without 'production'
$ bundle install
```
Then it is time to create the database:
```sh
$ rake db:create # Create the database
$ rake db:migrate # Migrate the database (see db/migrate/)
$ rake db:seed # Seed the database (see db/seeds.rb)
$ rake db:populate # Populate the database (see lib/tasks/sample_data.rake)
```
To test the website locally, you can simply do:
```sh
$ rails s # And then visit localhost:3000 in your browser
```
To run tests, do:
```sh
$ rake db:test:prepare # Must be done when the db structure changes
$ rspec . # '.' can be replaced by a path to one file in spec/
```