Git Product home page Git Product logo

al-tarikh's People

Contributors

amirk390 avatar hoslack avatar marlenaw avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

hoslack

al-tarikh's Issues

CSS

css styles

postData function

create a function that takes data from a form and posts it to the database

Create DATABASE

database folder

  • db_connection
  • db_build.js
  • db_build.sql
  • config.env

empty css file / using px

  1. reset.css file is empty!

  2. using px units on css..it is also not easy for me not to use px since I am so used to it, but let's try to use em/rem units since it is considered better practice! 🙌

Events ordering

Such a cool app! Great work! 👏 👏 👏

However, wouldn't it be better to arrange the list according to the date of event, instead of the order I put?

ex) if I put events for DEC 5, DEC 20, DEC 13, it would be better to see then arranged as DEC 5, DEC 13, DEC 20 on the list?

function getData

Create a function that gets data from the database and sends back as response.

Schema

Make a schema diagram

Modularization

Some of the code inside the router could've been maybe written more clearly inside the handler, like here:

https://github.com/FACN3/al-Tarikh/blob/master/src/router.js#L29

and some of the code inside the handler could've been separated in different modules to handle the SQL queries like here:

https://github.com/FACN3/al-Tarikh/blob/master/src/handler.js#L40

It would help to separate the code into well defined modules for readability and also to better keep track of possible issues and make debugging easier...

Testing ?

there was a workshops for testing database and testing a server i would 100% argue that they were the simplest workshops in the course, it's really not hard to do testing, that is literally the best part of web development seeing 100% coverage and tests pass

XHR Request

Create xhr request to get data fro the database and update the dom

DATABASE

  • make tables

  • make DATABASE files

database access

we don't have access to your database because its still stored locally on your computer so the DB_URL is not reaching any database.

Environment variable not ignored

we introduced config.env should be ignored in the .gitignore file why is it pushed to github ????!!!!!!

if it's on github ( and github is open for everyone ) then people can just come take your database url either delete everyhing in it or crash it or even fill it up with random shizz

Never ever push your enviroment variables

Github workflow

I'm not sure where to start here since there is so many Github workflow bad practices:

  • Let's start with issues though, you need to raise small issues and not stuff like CSS, Back End -> those are definitely not good issue names since they don't explain whats going on in the issue, also they are just too big for an issue, imagine im working on something and my backend is like 3000 lines of code, do i just make a pull request that contains 3000 lines of code ????!!!!!!!! that would take years to merge.

example of an issue : create the publicHandler function

  • pull requests should always contain a clear title and a good description of what the pull request is actually is AND RELATED TO AN ISSUE

  • commits should always have issue numbers in their messages !!!!!!

  • @hoslack @MarlenAw for real you guys you merged a PR 20 minutes ago?

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.