Skip to content

jsdecena/asknicely

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AskNicely Engineer Test

Requirements

  • NodeJs >= 18.x
  • Npm >= 8.x

Run the backend

  • Rename ~/.env.example to .env
  • Run docker-compose up -d
  • Go inside the container docker exec -it app bash
  • Once inside the container, run composer install
  • Exit the app container, type exit

Seed DATABASE schema

  • It is important that the docker containers are running. Run docker ps to check
  • If database is running, run the database migration with docker exec -it database bash
  • Once inside the database container, run psql -h localhost -d homestead -U postgres -f employees.sql
  • Exit the DB container, type exit

Run the frontend

Run unit test

  • Go inside the container docker exec -it app bash
  • Run unit test with composer test

Suggestion

  • With unlimited time, the database connection can be abstracted more into its own configurations
  • Add ability to create migration files like the famous PHP frameworks
  • Process the data inside a controller instead of directly in the route file inside anonymous function

Notes

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published