Giter Site home page Giter Site logo

friends_and_posts_react_node's Introduction

Friends, posts and news project

This is a project for the Node React module

Overview

The project contains two folders:

  • Client - Front-end
  • Server - Backend

Server

The server side represents the Back-end part which is built with Node.js and Express.

Please make sure you have the following services installed on your local machine:

  • Node.js
  • MySQL
  • Knex
    • In order to install knex open your CLI and run npm install knex -g

In order to start working with our project you need to follow these steps:

  1. Navigate to the server folder with your preffered CLI.
  2. Log in into your local mysql database using your preffered CLI.
    • Log in with mysql -u yourUsernameHere -p
    • Create a database for the current project by running CREATE DATABASE yourDBname;
    • run exit;
  3. Navigate to /server/config and create a file called "db_credentials.js" and follow the template from the "db_credentials_template.js" by inserting the previously set database name, your username and password.
  4. My platform also includes sending emails with Gmail. Please follow these steps.
    • Create a dummy gmail account and set the Less Secure option to be true.
    • Navigate to /server/config and create a file called "smtp_credentials.js" and follow the template from the "smtp_credentials_template.js" by inserting your gmail account credentials. This represent the email you will send the emails from when the users will use the Reset Password feature of the app.
  5. Navigate to back /server and run npm install.
  6. After everything is installed, make sure you are in /server folder and run the following commands:
    • Migrations: npm run m:latest or if you want to rollback the migrations npm run m:rollback
    • Seeds: npm run s:run
  7. After everything is done you can run npm run start-dev in order to start the development server. You should see in console something similar to Server is listening on port 9090 ...

Client

The client side represents the Front-end part which is built with React.

In order to start working with our project you need to follow these steps:

  1. Navigate to the /client folder with your preffered CLI.
  2. Run npm install
  3. Run npm run start

A new browser window should pop-up where you can see the project.

friends_and_posts_react_node's People

Contributors

bertearazvan avatar dependabot[bot] avatar

Watchers

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