This project is deprecated and the platform implements aws services as a serverless back-end.
Backend solution for Simulair-web project.
- REST API
Running with Docker containers:
- Docker (preferably version 19.x+)
- Docker Compose
-
Copy environment file
cp .env.example .env
-
Set/modify environment values if necessary
nano .env
-
Build and run containers
docker-compose up -d
-
Once built and ran, execute following commands to configure the application
docker exec app composer install docker exec app php artisan key:generate docker exec -it app php artisan jwt:secret docker exec app php artisan config:cache docker exec app php artisan migrate --path=database/migrations/mongodb docker exec app php artisan db:seed
When installation completes, database is seeded with sandbox data. Use following application user for experimental purposes:
u: [email protected]
p: password
Email address is set to verified for this user.
Example API requests:
Authenticate
POST /auth/token
Host: http://localhost:88/api
Content-Type: application/x-www-form-urlencoded
[email protected]
password=password
Get authenticated user data
GET /me
Host: http://localhost:88/api
Authorization: Bearer <JWT Access Token>
To be added