jcorum11 / go-react-project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GoReact Applicant Project

This is the take-home project for Software Engineers applying to work at GoReact. This same project is used for all Software Engineer positions. Make sure you follow the directions for the specific position you're applying for.

Running the project

This project requires you to have Docker installed and Node.js v16. (or even better if you have nvm installed you can use the .nvmrc file in this project to set your Node version) To run this project, run the following commands in two separate terminal windows:

# Terminal 1 - API
$ docker compose up

# Terminal 2 - Client
$ cd client
$ npm install
$ npm start

The docker command will spin up Laravel and MySQL in docker containers. The API will be available at localhost:9090. The Client command will use the Angular CLI to serve the Angular application, which you can access at localhost:4200.

If you want to interact with any of your php or laravel commands, first get a shell into your docker container.

$ docker compose exec web /bin/bash
$ cd /www/web

From here, you can run any php or laravel commands you need.

Running Tests

Part of your project is fixing broken tests and adding new tests. You can run your backend tests like so:

# API tests
$ docker compose exec web /bin/bash
$ cd /www/web
$ php artisan test

You can run your Client tests in watch mode with the following commands:

# Client Tests
$ cd client
$ npm test

Project Requirements

Check the REQUIREMENTS document to get the list of you need to do for your position application.

About

License:MIT License


Languages

Language:PHP 66.2%Language:TypeScript 14.7%Language:Blade 13.5%Language:Dockerfile 1.4%Language:HTML 1.2%Language:SCSS 1.1%Language:JavaScript 1.0%Language:Shell 0.9%