Code Monkey home page Code Monkey logo

opc_6's Introduction

Project 6 | OpenClassrooms | Construisez une API sécurisée pour une application d'avis gastronomiques

✴️ The Purpose of the Project

  1. Creating back-end of this project to build an API (The front-end of the application was developed using Angular)
  2. Creating a logical data model and translating it into the API
  3. Ipmlementing CRUD fonctionalty, Create, Read, Update, and Delete
  4. Storing data in the database mongoDB
  5. Protecting data stored on an app (OWASP/RGPD)
  6. Creating a user, verifying and securing the user's session

✴️ About the Project

https://www.youtube.com/watch?v=ISGOk1S7ecE

In this project, we can create a user using a password and email address. This user can like, dislike or unlike the sauces created by other users, but cannot make any changes or delete these sauces. Users can create their own sauces and only delete or modify their own sauce. The user can log out and reconnect using her/his password and email address.

✴️ The Technologies used

✳️ Node.js ✳️ Express ✳️ MongoDB ✳️ API REST

✴️ Project Backend Setup

  1. Open a terminal at the root of the project

  2. Run the following command to reach the directory "backend"

cd backend
  1. Install the dependencies
npm install
  1. Create a project in mongoDB, specify a user with a specific username and password, and create a cluster
  2. Create a folder with name of "vars" in the repository "backend", inside "vars" create a file ".env" likes the file .env.example and write the following informations using your own data in this file. [backend/vars/.env]
PORT=3000
DB_USERNAME="your mongoDB user name"
DB_PWD="your mongoDB user password"
DB_CLUSTER="your mongoDB cluster name"
JWT_KEY_TOKEN="Create an API token"
  1. In this file, write your own MongoDB project user name, password and cluster name
  2. Generate your own API token and write it also in the file .env for JWT_KEY_TOKEN
  3. Run backend server with this command
npm start

✴️ Project Frontend Setup

  1. Open a terminal at the root of the project

  2. Run the following command to reach the directory "frontend"

cd frontend
  1. Install the Dependencies
npm install
  1. Run frontend server with this command
npm run start
  1. Type the following URL in your browser to reach the application

👉 http://localhost:4200/

✴️ Password Validation

Password must be 6 characters:

⭐ 1 uppercase letter ⭐ 1 lowercase letter ⭐ 1 special character ⭐ 3 digits

opc_6's People

Contributors

gulcanc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.