- open a terminal to clone the repo
git clone https://github.com/JohnGeorgiadis/salon.git
- cd into the project
yarn
ornpm install
yarn start
ornpm start
The project will then run on http://localhost:3000/
The api will then run on http://localhost:3000/api
- On a new terminal instance run
yarn cypress
ornpm run cypress
- A new window will appear, and you will be able to interact with the cypress gui.
If you just want to inspect the code then you can use github1s https://github1s.com/JohnGeorgiadis/salon
Assumptions:
- I am new to nextjs. I am sure that there is a better way to deal with local data and local API
- I think I should have used getStaticProps for a specific salon. I wanted to show my ability to use useEffect in react.
- I could have written more tests, but due to time constrain I just wrote the successful path.
- Maybe there is a better way to deal with assets. For now, I tried to download all the assets and put them in the public folder.