Skip to content

AntonioGuizar/TIProtec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TI Protec

Welcome to TI Protec API created in CodeIgniter 4.4.2

Please clone this repository

git clone git@github.com:AntonioGuizar/TIProtec.git

To run in your local environment please follow the instruction:

Run the SQL script from db/script.sql

Configura the access to the database in back/app/config/Database.php

'hostname'     => 'localhost',
'username'     => 'root',
'password'     => '',
'database'     => 'tiprotec',
'DBDriver'     => 'MySQLi',

With your terminal go to the folder /back and run

composer install
php spark serve

After that run to the folder /front and run

npm i
npm start

And open in tour browser the link http://localhost:3000

You're ready for test the API!

This is the list of the available endpoints:

Users GET all users

http://localhost:8080/users

GET user by id

http://localhost:8080/users/{id}

POST create user

http://localhost:8080/users

PUT update user by id

http://localhost:8080/users/{id}

DELETE user by id

http://localhost:8080/users/{id}

You can download the POSTMAN Collection for testing the API here and import the collection into POSTMAN APP

About

TIProtec API

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages