-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: basic documentation to get started
- Loading branch information
1 parent
23926da
commit 3503e18
Showing
1 changed file
with
21 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,31 @@ | ||
# README | ||
## Les prérequis | ||
|
||
This README would normally document whatever steps are necessary to get the | ||
application up and running. | ||
Ce qu'il faut installer sur votre machine pour que ce projet tourne : | ||
|
||
Things you may want to cover: | ||
- sqlite | ||
- redis | ||
|
||
* Ruby version | ||
## Installer le projet | ||
|
||
* System dependencies | ||
Il suffit de lancer la commande suivante pour que les dépendances du projet | ||
soient installées : | ||
|
||
* Configuration | ||
``` | ||
bundle install | ||
``` | ||
|
||
* Database creation | ||
## Lancer le projet | ||
|
||
* Database initialization | ||
Ce projet utilise Sidekiq, qui dépend de Redis. Donc avant de pouvoir faire | ||
tourner l'ensemble du projet, il faut lancer ces deux services : | ||
|
||
* How to run the test suite | ||
``` | ||
$ redis-server [--daemonize yes] | ||
$ bundle exec sidekiq | ||
$ bin/rails s | ||
``` | ||
|
||
* Services (job queues, cache servers, search engines, etc.) | ||
Maintenant, vous pouvez accéder au dashboard de Sidekiq : | ||
http://localhost:3000/sidekiq | ||
|
||
* Deployment instructions | ||
|
||
* ... | ||
Et consommer l'API : http://localhost:3000/api/pokemons |