--- groupomania social network (React, express, Mysql, NodeJs) ---
link to github repo: https://github.com/agnestshibangu/P7_01-10-21_Agnes_Tshibangu
The goal for this project was to create a social network for the company Groupomania to improve communication among its employees. Using Express and NodeJs for the backend and React for the frontend, this API has a login and authentication system (JWT), displays the lastest activities and allows users to share their ideas thank to a forum where photos, posts and comments can be exchanged.
download and install the last version of Node.Js (you can add nodemon)
- open terminal
- Create a new project folder with
mkdir Groupomania
- then enter the directory
cd Groupomania
- install react with the following command :
npx create-react-app <name>
and thancd <name>
- then run the Node server with the following command :
npm start
- use
ctrl + c
if you want to stop the React app in your command line
- create or enter the directory where you want the cloned directory to be added
- open git bash and clone this repo by typing the following command line
git clone https://github.com/agnestshibangu/P7_01-10-21_Agnes_Tshibangu.git
- remove the yarn lock and/or package json lock files if needed
- remove the npm modules if needed
- install npm by typing
npm install
- install MySQL (I'm using Wamp/localhost - phpMyAdmin)
- install nodemon server
- configure backend/config/config.json and make sure the username and password match your local MySQL credentials.
- create the database with sequelize
npx sequelize-cli db:create
In two separated terminals, run the following command lines :
- cd backend
nodemon server
- cd frontend
npm start
Then open on: http://localhost:3000/login