Skip to content

kiloumap/Le-bon-coin

Repository files navigation

Le bon coin

Description

Nothing important.

Getting Started

Install dependencies

npm install

Structures

- app
    ----- controllers/
    ---------- articles.js  <!-- the article controller to set up CRUD -->
    ---------- users.js     <!-- the user controller to set up CRUD -->
    ----- helpers/
    ---------- token.js     <!-- the token helpers for check token -->
    ---------- validator.js <!-- the validator helper to validate datas to handle CRUD -->
    ---------- view.js      <!-- the view helper -->
    ----- models/
    ---------- Articles.js  <!-- the nerd model to handle CRUD -->
    ---------- Users.js     <!-- the nerd model to handle CRUD -->
    ----- routes/
    ---------- index.js     <!-- the router for seperate article's to user's path -->
    ---------- Articles.js  <!-- the article route -->
    ---------- Users.js     <!-- the user route -->
- config
    ----- config.js   
- node_modules              <!-- created by npm install -->
- public                    <!-- all frontend and angular stuff -->
----- src
----- index.html
---------- app.js           <!-- angular application -->
--------------- routing.module.js     <!-- angular routes -->
--------------- article      <!-- article files -->
--------------- user         <!-- user files -->
--------------- model     
- .gitignore                <!-- ignored files by git -->
- mongod                    <!-- shortcut to setup database -->
- mongodRepair              <!-- shortcut to repair database -->
- .bowerrc                  <!-- tells bower where to put files (public/libs) -->
- bower.json                <!-- tells bower which files we need -->
- package.json              <!-- tells npm which packages we need -->
- server.js                 <!-- set up our node application -->

Prerequisites

Run mongodb-server

sudo mongod --storageEngine wiredTiger --dbpath data/db

or exec mongod file

sudo ./mongod

Run node server

A simple command to set DEV-env & run server.

npm start

Start angular

A simple command to set DEV-env & run server.

cd public && npm i && ng serve

Demo

For demo, you can visit this link.

Versioning

We use Git for versioning. For the versions available, see the this repository.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Node express API made for school project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published