Groupomania is a social network for employees of the Groupomania company. It allows employees to share their thoughts and opinions with each other.
The project is for the last project of the web developer training at OpenClassrooms.
We have to respect the following criteria in the PDF file: PDF here
- Clone the repository
- Install the dependencies (from
/backendfolder)
npm install- Create a .env file in the root directory and add the following variables: (There is an example in the
.env.examplefile)
JWT_SECRET=YOUR_SECRET
JWT_DURING=24h(24h for example)
BCRYPT_SALT_ROUND=10(10 is the default value)
IMAGES_DIR=../..
IMAGES_FOLDER=images
#For the database in dev mode
DB_USERNAME=YOUR_USERNAME
DB_PASSWORD=YOUR_PASSWORD
DB_DATABASE=groupomania_dev
DB_HOST=127.0.0.1
#For the database in prod
DB_USERNAME_PROD=YOUR_USERNAME
DB_PASSWORD_PROD=YOUR_PASSWORD
DB_DATABASE_PROD=groupomania_prod
DB_HOST_PROD=127.0.0.1- Create a database in PostgreSQL
- Run the migrations
sequelize db:migrate- Run the seeders
sequelize db:seed:all- Run the server
npm run dev- Clone the repository
- Install the dependencies (from
/frontendfolder)
yarn install- Create a .env file in the root directory and add the following variables: (There is an example in the
.env.examplefile)
VITE_API_URL=http://localhost:3000
VITE_IMAGE_URL=http://localhost:3000/images/- Run the server
yarn devA database in postgresql is required. A free example is host on Digital Ocean with the following credentials:
Host:XX
Port:XX
Username:XX
Password:XX
Database:XXYou can know use the front end to test the application. Or you can use Postman to test the API.
You can login in admin with the following credentials:
Email: XX@XX.XX
Password: XXor demo user :
Email: XX
Password: XXFor the other users, you can create your own account on URL/signup
Feel free to test the application and give me your feedback. I will be happy to read it.
With the time I wish add messages between users but the time in my training is over the 27 Dec.
Distributed under the MIT License
Created by @Commantary