Skip to content

adrianwilk89/log-form

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Application was created for purposes of the recruitment process.

Software requirements

To run this project localy you have to install

  • Docker - for API
  • Node >=14.17 - for CLIENT

Technologies

I used the following technologies to create this project JavaScript React npm Node.js Redux Jest webpack PostgreSQL Docker

Installation & run client app

Use the package manager npm to install node_modules required for this app. Run in /client folder following commands

npm install 

then

npm start

to start webpack dev server. Application will be running on http://localhost:8080

Run API server

Go to /api folder and run following command

docker-compose up

If you want to check records in database run following commands

Note: Before you start you have to get database container_id to do this run docker ps and grab container_id for "postgres:11.5-alpine" image from displayed table, next paste it instead {container_id} in command bellow.

docker exec -it {container_id} psql -U postgres

next, connect to database logs running following command

\c logs

and select records from table by following example command

SELECT * FROM "Log" LIMIT 2;

Testing

To run client app tests go to /client folder and run following command

npm run test

To run api tests go to /api folder and run following command

npm run test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published