Skip to content

Création d'un site de gestion d'annonces immobilières utilisant les technologies Express.js et MongoDB.

License

Notifications You must be signed in to change notification settings

robin-76/web-tp1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 

Repository files navigation

  • Year : M2 IWOCS
  • Subject : WEB
  • TP : n°1

Author(s)

Nom Prénom
Guyomar Robin
Bourgeaux Maxence

Description

Creation of a real estate ad management website using Express.js and MongoDB technologies.

This site allows to create and display different ads. Here are the available features:

  • Basic account creation
  • Login

If you are not logged in :

  • Only look at the list of ads

If you are logged in but you are a customer :

  • Post a comment on a particular ad (ask a question for example)

If you are a real estate agent (box to be chosen when creating your account) :

  • Create an ad :
    • Title
    • Description
    • Photos (optional)
    • Price
    • Availability date
    • Property type
    • Property status
    • Publication status
  • Modify the ad
  • Delete the ad
  • Post a comment on a particular ad (to answer a question for example)

Commands to launch the server

Go to the directory :

cd Web_TP1

Installing the dependencies :

npm i

Launch the server :

npm start

Server link : http://localhost:3000

To check the database :

In a new terminal,

mongo

show dbs

use LeBonLogement

show collections

Display the created ads :

db.ads.find().pretty()

Show created users :

db.users.find().pretty()

View created sessions:

db.sessions.find().pretty() 

View user comments :

db.comments.find().pretty()

Screenshots

Sign up :

Sign up

Login :

Login

Home :

Home

Form :

Form

Ads :

Ads

Ad :

Ad

About :

About

About

Création d'un site de gestion d'annonces immobilières utilisant les technologies Express.js et MongoDB.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages