Skip to content

Jbrennin1/Atelier-API

 
 

Repository files navigation

Team Everglades: FEC-project-atelier

In this mockup project, we created a modern and user-friendly single-page shopping website. We focused on designing a clean and intuitive interface that will allow customers to easily browse through and should enhance the overall customer experience.

Tech Stack

JavaScript React Vite Node NPM Nodemon Express Axios TailwindCSS MongoDB AWS

Components

Overview:

image

Related Items and Comparison:

image

Questions and Answers:

This component lets users search up existing questions on the selected item, add a question they may have, answer any questions, report any answers, and let users know if the question or answer was helpful.

image

Ratings and Reviews:

image

Installation & Use

  1. Clone repo
git clone https://github.com/Team-Everglades/project-atelier.git
  1. install node
npm install
  1. Run server and react server
npm run dev
  1. install all dependencies
//To install dependencies run:
npm install react-share --save
npm install cloudinary
npm install react-inner-image-zoom --force
npm install -S react-image-size --force
npm install cookie-parser --force
npm install react-icons
npm i vite-plugin-compression
//Install concurrently globally:
// this enables simultaneous operation of vite and nodemon via a single command
npm i -g concurrently
  1. setup enviornmental variables files:
  • using the example.env and config.example.js, create a copy of these two files and remove 'example' from the file name

  • PORT - whichever port you want to run the backend server on, defaults to 3000 in 'server/index.js'

  • DB_USERNAME and DB_PASSWORD -- you will need to create a new user for a new or existing MongoDB Atlas Cluster. Log in to cloud.mongodb.com, go to 'Database Access' under 'SECURITY' on the left sidebar, and click 'ADD NEW DATABASE USER.' Once you assign the new user at least one role or permission, you will be given the option to enter a password. Store the username and password under environmental variables DB_USERNAME and DB_PASSWORD, respectively.

  1. Enjoy browsing!

Testing:

To start the test monitoring:

npm test

To test coverage:

npm run coverage

To add tests: (ref: https://vitest.dev/api/)

  1. Create a new file in the 'spec' folder with the suffix 'spec.js'
  2. import { it, expect } from 'vitest'
  3. use the following format for all tests on the page:
it('Should perform expected action', () => {
  expect(firstResultOfTestedThing).toBe(firstExpectedResult)
  expect(resultOfTestedThing).to.equal(secondExpectedResult)
})                              ^
                                |
                                vitest supports all Chai and Jest assertion formats. See the following for details:
                                Chai: https://www.chaijs.com/api/bdd/
                                Jest: https://jestjs.io/docs/expect

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.2%
  • CSS 1.8%
  • HTML 1.0%