Giter Club home page Giter Club logo

homework-1-s-e's Introduction

Application for digital vacation requests

Server + Database

  • Run a MySql server in a Docker container
  • Install Docker and create a MySql server by using this command in the terminal:
    • docker run --name HomeW1 -p 3306:3306 -e MYSQL_ROOT_PASSWORD=word123 -d mysql
  • After creating a MySql server use MySql workbench in order to set up a database
  • You can use the files in the folder "sql statements" in order to create the necessary tables within the database

Requirements

  • Download Node.js (with npm included)
  • Install mysql2, express, express-session, bcrypt and body-parser with command: npm istall [f. Example: mysql2]

Start the application

  1. Make sure your server is running in a docker container correctly
  2. Initialize a node project with the command "npm init -y"
  3. Use the following command in order to run the node.js server: "node server.js"
  4. If the server is running correctly you can acces it on localhost:3030/index.html
  5. Navigate threw the application and make a leave request

homework-1-s-e's People

Contributors

ap500 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.