Skip to content
This repository was archived by the owner on Nov 6, 2024. It is now read-only.

jhordyess/mern-graphql-project

Repository files navigation

MERN CRUD Project

CRUD Project using MERN stack, manage employees and it's login user.

Description

This project is a CRUD application using the MERN stack (MongoDB, Express, React and Node.js). It's a simple application to manage employees and it's login user.

The backend is a REST API that uses Prisma as ORM to connect to a MongoDB database.

The frontend is a React application using TypeScript and Vite as build tool.

The project is containerized using Docker and Docker Compose, for frontend, backend and database.

Also I've created a public collection for this project in Postman, that you can use to test the API. Note that you need to have the backend running in order to use it.

Technologies Used

Backend

Frontend

Others

How to use for development

You can use the VSCode dev containers to run the project in a containerized environment.

You need to have installed Docker and VSCode, and the Dev Containers extension.

  1. Clone this repository
git clone [email protected]:jhordyess/mern-crud-project.git
  1. Open the project in VSCode
code mern-crud-project
  1. Create a .env file in the root folder by copying the example from the .env.example file.

  2. Open the integrated terminal (Ctrl+Shift+`) and run the following command:

docker compose -f docker-compose.devcontainer.yml up -d
  1. Open the command palette (Ctrl+Shift+P) and select the option Dev Containers: Open folder in Container.

  2. Select the folder backend and wait for the container to be built.

  3. Open the integrated terminal (Ctrl+Shift+`) and run the following command:

yarn dev
  1. Repeat the steps 5, 6 and 7 for the folder frontend.

  2. Open the browser and visit http://localhost:5173/ and lets code!

To-Do

  • Develop frontend
  • Add seed for DB
  • Prepare for production
  • Add more to-do's 😅

Contribution

If you would like to contribute to the project, open an issue or make a pull request on the repository.

License

© 2022> Jhordyess. Under the MIT license. See the LICENSE file for more details.


Made with 💪 by Jhordyess