https://github.com/alexolival/take-home-challenge
https://github.com/alexolival/take-home-challenge
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/alexolival/take-home-challenge
- Owner: AlexOlival
- Created: 2023-10-19T16:51:13.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-19T17:09:02.000Z (almost 3 years ago)
- Last Synced: 2025-01-24T10:47:30.928Z (over 1 year ago)
- Language: PHP
- Size: 104 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# take-home-challenge
## backend
The backend uses Laravel Sail to set up (with a lot of the 'fat' trimmed off - I only needed Redis)
Simply `cd` into the directory and run `./vendor/bin/sail up`
The rest should be pretty standard - however be sure to set the correct env variables `PORT` `CLIENT_ORIGIN_URL` `AUTH0_AUDIENCE` and `AUTH0_DOMAIN` as per what is required for Auth0 to work
## frontend
`cd` into the directory and run `docker compose up`. You may want to change the port depending on your needs (I ran the frontend app on 9000)
If you do change the port, be sure to also check `vite.config.ts` and update the `server` config object accordingly
Then, create a `auth_config.json` file (I have included an `auth_config_example.json` file which you can copy) - you should set the `domain`, `clientId` and `audience` values as per what is required for Auth0 to work
Finally, simply access the Docker container and run `npm install` and then `npm run dev`
You should then be able to run the project!