https://github.com/kbrdn1/myhackount
This is my first MERN project. It is a social network made with Nodes.js to create an API with MongoDB and Express then React.js to create the interface of the app.
https://github.com/kbrdn1/myhackount
crud express expressjs jwt mern-stack mongodb mongoose nodejs react redux sass social-network
Last synced: 3 months ago
JSON representation
This is my first MERN project. It is a social network made with Nodes.js to create an API with MongoDB and Express then React.js to create the interface of the app.
- Host: GitHub
- URL: https://github.com/kbrdn1/myhackount
- Owner: kbrdn1
- Created: 2022-07-31T19:42:00.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T08:38:49.000Z (over 2 years ago)
- Last Synced: 2023-12-15T09:42:38.130Z (over 2 years ago)
- Topics: crud, express, expressjs, jwt, mern-stack, mongodb, mongoose, nodejs, react, redux, sass, social-network
- Language: JavaScript
- Homepage:
- Size: 7.5 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MyHackount - MERN Project

## Introduction
This is my first MERN project. It is a social network made with Nodes.js to create an API with MongoDB and Express then React.js to create the interface of the app.
## Technologies used within this project
### Backend:
- NodeJS
- MongoDB
- Express
- JWT
### Frontend
- ReactJS
- SASS
- Redux
## Project setup
### Backend:
#### Environment variable
```sh
# ./config/.env
PORT= # enter the API port (by default is 5000)
APP_URL=http://localhost:3000
DB_USER_PASS=:
TOKEN_SECRET= # enter a random secret token (exemple: "63e45d11c84d424")
```
#### Connect database
```javascript
// ./config/db.js
/*
add your path URL to connect at your Mongo DataBase
for exemple :
*/
"mongodb+srv://" + process.env.DB_USER_PASS +"@cluster0.t023j84.mongodb.net/{dbname}"
// or
"mongodb://localhost:27017/{dbname}"
```
### Frontend
#### Environment variable
```sh
# ./app/.env
REACT_APP_API_URL=http://localhost:
```
Go to the folder ```data``` and adding the ```post.json``` and ```users.json``` to Mongo DataBase.
## Run App
### Backend
```sh
# ./(root_dir)
npm i
npm start
```
### Frontend
```sh
cd app
# ./app
npm i
npm start
```