In this project, users can create a new account, sign in or enter as a visitor. Users can create a post on a wall if they are logged, or just read the posts, if they aren't. This project was built using React, Tailwind CSS and Cypress.
To run this application, open the terminal in any directory of your choice and run the commands below:
- Clone the project
git clone git@github.com:gabriellukke/wall-app-frontend.git
- Enter in project directory
cd wall-app-frontend
- Install project dependencies
npm install
or
yarn install
- Create a .env file in project root and configure the environment variables.
- if you want to use the production backend:
REACT_APP_BASE_URL=https://rest-wall-api.herokuapp.com
- if you want to run the local backend:
REACT_APP_BASE_URL=http://localhost:3001
This project uses cypress for testing. Cypress is an end-to-end testing tool.
-
To run the project tests, make sure your application is running at
http://localhost:3000
. If you want to change the application test url, change the keybaseUrl
incypress.config.js
to your application url. -
Tests are isolated from backend in this project, so you can run without backend connection.
Running tests on terminal:
npm run cypress
or
yarn run cypress
Running tests using Cypress UI:
npm run cypress:open
or
yarn run cypress:open
- I really liked to code this app.