goalaim-0.2.8 is not a library.
GoalAim Backend
Table of Contents
Presentation
Here the repo of the Rust server.
The application will make call to the server to get the information.
Installation
Local db
You have to setup a local postgres db with docker :
# Install diesel
# creation du docker:
# CMD for the end
# Connect yourself to the docker :
# Always restart the docker :
# In the docker :
;
;
# In the .env at the root of the project
DATABASE_TEST_URL=postgres://postgres:admin@0.0.0.0/test_db
DATABASE_URL=postgres://postgres:admin@0.0.0.0/goalaim_db
PORT=8080
JWT_SECRET="celui qui lit ça est gay"
For Diesel set this in your .bashrc or .zshrc and then, restart your terminal
# relace user by the real name
To create the Table in the docker psql :
To check if the table is created :
# Connection
# Connect yourself to the db
\c
# Check if table exist
;
Launch server
To launch the server run :
# or directly
Unit Tests
To run the unit tests :
Documentations
To have the Documentation of the code :
Now you have to go to ${ACTUAL_PATH}/target/doc/goalaim/ and open the index.html in the browser.
Swagger
You can have the swagger of our API routes in Swagger
You can have a preview of our swagger with the Swagger Preview extension in vscode.
Contributors
You can contact us at:
- Noeme Suisse : noeme.suisse@epitech.eu
- Victor Massonnat victor.massonnat@epitech.eu