This is project for chain of second-hand stores. Project status: in progress
Project is created with:
- TypeScript
- React
- React-query
- SCSS Modules
- Node.js with Express.js
- Visual Studio Code with extensions
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:
- 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
- To install yarn package manager (faster version of npm) run the commnad npm install --global yarn
- confirm yarn install by typing command yarn --version
- To run the project locally you will have to create your own MongoDB Atlas account, and have your own cluster/db created here
- 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