Giter VIP home page Giter VIP logo

feednext-nestjs's Introduction

No longer maintained

Brand Logo

Closed Issues License Extra Info

What is this all About ?

feednext.io is an open source social media platform of the Feednext organization, founded by Software Engineer Onur Ozkan. The main purpose of the project is to inform people around the world about any physical or a virtual object from a single central source. Like a phone model, TV, Computer components or a Song even. I believe by doing that with the best way, this platform will turn into a central system of information distribution about product reviewing around the world.


Installation

Requirements

Technology Version
Docker *
Docker Compose *
Make *
Node LTS

API

After you have forked and cloned this repository to your machine, cd into project folder and then create .env files from .env.example ones with following command:

cp .env.example .env && cp ./server/.env.example ./server/.env

Once .env files are created successfully, now you can run the api on your local by running following command:

make dev

With the command above, api will start running on http://localhost

WARNING (For Osx & Windows Users)

The way of Docker (Linux containers) works on non-linux machines are pretty messy. With feednext, we have whole project folder passed into linux containers synchronously which works crystal clear on Linux machines. But, on non-linux machines it enforces your machine's drive pretty hard. For non-linux users, we have an alternative development way, instead of passing project folder, we will only use mongo and redis as containers and then will start api manually below the server directory.

Start mongo and redis containers:

make dev2

cd into server directory, and update the following values in .env file:

DB_HOST=localhost:27017
REDIS_HOST=localhost

Install dependencies:

npm ci

Run API:

npm run start:dev

Right after the command above, api will start running on http://localhost:3000

Import DB Dump

In the project root, run the following command to import/restore db dumps:

make import_db_dumps

In development mode, you can not create user accounts because of the sign-up mechanism of Feednext. Instead of creating accounts, you can sign in with already created demo accounts. The account credentials are as in the following table:

Username Email Password Role
admin [email protected] admin123 5
jacky_eirl [email protected] demo123 0
jens.auhrk [email protected] demo123 0
teo.alpha [email protected] demo123 0
saul.kuvarsk [email protected] demo123 0
onur.ozkan [email protected] demo123 0

FRONTEND

cd into client directory and then:

Install dependencies:

npm ci

Run Frontend:

npm run start:dev

If you follow the Osx & Windows way for running API, then apply following changes in config/constants.ts:

'http://localhost/api' TO 'http://localhost:3000/api'
'http://localhost' TO 'http://localhost:4001'

Tech Stack

Core

API

Web Frontend


API Documentation

API documentation is automatically generated by Swagger on development mode at /api endpoint.

See hosted documentation here


Contributing

Technically, feednext.io is performance oriented application which is developed with Software Patterns & Design Principles using modern technologies all around it. PRs are welcome as long as they are fits in the principles, structure of the feednext.io.

Please do not directly PR to 'master' branch, instead go for 'dev' branch.

Styleguilde

Commit Messages

  • If you have changed things below the server or client directories, commit messages must have [server] or [client] prefix.
  • Commit messages should never include emojies
  • Commit messages must be imperative like "Add stuff" not "Added stuff"

Coding

  • Do not break the eslint rules.

feednext-nestjs's People

Contributors

dependabot[bot] avatar onur-ozkan 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.