Skip to content

acardielf/calambre-back

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

This repository it the backend part of a final Degree in Computer Engineering work vfor the Universidad Oberta de Catalunya. It's a tool to obtain meters of a certain electric supply which belongs to e-distribucion. With a clear commitment to the democratisation of energy as a basic necessity, and shared knowledge, this project serves as a basis for building a useful solution for the consumer in the future. Therefore, as many contributions and derivative projects are welcome.


Installation process

  1. Execute the following commands:
mkdir calambre && cd calambre
git clone https://github.com/ancafe/calambre-back
cd calambre-back
cp src/.env.example src/.env
mkdir .docker/postgres-data
  1. Edit the file src/.env
docker compose up -d --build
docker exec -it calambre-api bash
composer install
php artisan key:generate
php artisan jwt:secret
php artisan migrate --seed
clear
php artisan IV:generate
  1. Replace the printed line in the .env file (line 3)
...
APP_FIX_IV_FOR_EMAIL=**********************==
...
  1. Create an example user:
curl --location --request POST 'http://calambre-nginx/api/register' --header 'Authorization: Bearer null' --form 'email="[email protected]"' --form 'name="Demo User"' --form 'password="Demo1234"' --form 'password_confirmation="Demo1234"'; echo  
User Password
[email protected] Demo1234

About

Backend Calambre

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages