Skip to content

ramonfcf/mern-reactApp

Repository files navigation

mern-ReactApp

This is a aplication to manage a list of users. The app is built with React and Vite. The app is connected to a backend server coded in Node.js and Express.

Installation

Before running these commands, ensure you have yarn installed on your system. If not, you can install it by running npm install --global yarn (if you have NPM installed) or you can download Yarn from the official website.

  1. Install the dependencies:
yarn install
  1. Run the app:
yarn dev
  1. Run unit tests:

To run the unit tests, you can run the following command:

yarn test

To run the tests and update the snapshots, you can run the following command:

yarn test -u

Usage

The app will be running on http://localhost:5173. You can access it by opening your browser and typing this URL.

Environment Variables

The app uses environment variables to configure the API URL and the API key. You can create a .env file in the root of the project and add the following variables:

  [VITE_API_URL] - The URL of the backend server
  [VITE_API_KEY] - The API key to access the backend server
  [VITE_APP_NAME] - Passphrase to encrypt the JWT token

Deployment

This project is divided into two parts: the server and the client. The server is built with Node.js and Express, and the client is built with React. The server is deployed to a VPS server in oracle cloud(vinhedo), and the client is deployed in a VPS server in contabo(germany).

You can acess the frontend app by clicking here

Print

image

Dependencies

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published