This technical assessment was completed within a 24-hour timeframe, utilizing NestJS, MongoDB Atlas, TypeScript, Mongoose, React, Vite, and CSS. The primary challenge was to develop an interface closely resembling the target project design and functionality.
Version v1.0.0 was delivered within the initial timeframe, marking a significant milestone. Following this release, further improvements and solutions have been implemented to refine the project and enhance its performance and user experience.
- RESTful API built with NestJS for efficient and scalable server-side operations.
- Data storage managed on MongoDB Atlas, providing a cloud-hosted, scalable database solution.
- Data modeling handled with Mongoose, simplifying MongoDB object management.
- TypeScript utilized throughout for static typing, enhancing code quality and maintainability.
- Frontend interface built with React, Vite, and TypeScript, ensuring fast, dynamic, and type-safe client-side interactions.
- Styling applied using CSS for custom, responsive user interface design.
- NestJS - A progressive framework for building efficient and scalable server-side applications in Node.js.
- MongoDB Atlas - A database as a service (DBaaS) platform for MongoDB, providing cloud-based database hosting.
- TypeScript - A typed superset of JavaScript that compiles to plain JavaScript, enhancing code maintainability and readability.
- Mongoose - A library for MongoDB object modeling, providing a straightforward schema-based solution to model data in Node.js.
- React - A JavaScript library for building user interfaces, allowing the creation of interactive and dynamic front-end components.
- Vite - A modern build tool that provides fast development and optimized builds, used here to enhance the development experience with React.
Follow these steps to install and run the project on your local machine:
- Clone the repository:
git clone https://github.com/ProWilliam/neuroPublico.git
cd neuroPublico
- Navigate to the corresponding folders for the frontend and backend:
Frontend:
cd frontend
npm install
Backend:
cd ../backend
npm install
- Install the frontend and backend environment variables:
- Frontend: Create .env file in the root of your project with the following information.
VITE_URL_BACKEND=your_ip_backend_with_port
VITE_PATH_PRODUCT=product
- Backend: Create .env file in the root of your project with the following information.
DB_URI=your_uri_the_mongodb_atlas
- Start the server:
npm run start:dev
- Start the frontend:
cd ../frontend
npm run dev
You can use a tool like Postman or Insomnia to test the API. Here are some examples of routes you can try:
- POST /product - Create the product list.
- GET /product - Gets the product list.