Skip to content

Veryyapeee/second-hand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Second hand

This is project for chain of second-hand stores. Project status: in progress

Table of Contents

Technologies


Project is created with:

  • TypeScript
  • React
  • React-query
  • SCSS Modules
  • Node.js with Express.js

IDE

  • Visual Studio Code with extensions

Requirements


To be able to run our project locally, you need to have installed yarn package manager If you do not know if you have it installed on your computer and you still want to run our project follow these steps:

Windows command prompt/Linux bash

Run npm -v
  • If you received a number like 'x.x.x' you already have installed npm package manager *on your computer and you can follow the next part, which is installing yarn
  • Otherwise, you will have to install it, the best way to do it is installing it globaly by running the command npm install npm@latest -g
  • After that you can run again the command from the first line just to confirm that you have succesfully installed required package manager
Install yarn
  • To install yarn package manager (faster version of npm) run the commnad npm install --global yarn
  • confirm yarn install by typing command yarn --version

Setup


DataBase

  • To run the project locally you will have to create your own MongoDB Atlas account, and have your own cluster/db created here

To run the project locally follow these steps:

  • Clone this repository
  • Open repository in your code editor
  • Run command yarn to install all dependencies (in server and client directory as well)
  • Create .env file within the server catalog, this file should contain important information which lack of will cause fatal errors.

    this is the data that you should add into .env file:

    MONGO_USER=<you user name>
    MONGO_PASSWORD=<your user password>
    MONGO_DB_NAME=<your db name>
    PORT=5000 < Leave it like that!
    ADDRESS=localhost < Leave it like that!
    JWT_PRIVATE_KEY=<some random password>
  • Run commad yarn dev in root directory to run whole project
  • Run command yarn build to build the project

Demo link


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages