Skip to content

fullstack project with nuxtjs in the frontend and express + typescript in the backend

Notifications You must be signed in to change notification settings

MateusGaldinoLG/aphorisme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aphorism

home example Login example profile example writing example without author writing example with author Searching author example Searching User example Seeing another userpage example

Description

Aphorisme is a social network based on aphorisms, a short length style of text used in areas such as philosophy and literature. Every user can publish their own aphorism and rate on the aphorisms of others.
This is a side project and can be used locally but is not production ready

Technologies used

As a fullstack project, many technologies were used, namely:

  • Front end:

Nuxt - Vue - Bootstrap Vue - scss

  • Back end:

Express - Typescript - Typeorm - Postgres

This stack could also me called PEVN (PostgresQL - Express - Vuejs - Node)js, in comparison to the PERN (PostgresQL - Express - Reactjs - Nodejs)

How to run

To run this program, you need to have Node.js and NPM.
First clone this projet by running

    git clone https://github.com/MateusGaldinoLG/aphorisme.git

Than download each folder's packages:

    # backend
    cd backend
    npm install

    # frontend
    cd aphorisme
    npm install

For running, open two prompts and run in each:

    # backend
    cd backend
    npm run dev

    # frontend
    cd backend
    npm run dev

Backend setup

The backend uses PostgresQL and Typeorm, to set up it rightly follow this steps:

  1. Go to the ormconfig.json file and rename user to your postgres user and password to your postgres password
// ormconfig.json
{
    // ...
    "username": "your username here",
    "password": "your password here",
    // ...
}
  1. Go to your Postgres setup and create an aphorisme database
    # in prompt
    createdb aphorisme -O #owner name
    # or in psql
    CREATE DATABASE aphorisme with OWNER #name here
  1. Run all typeorm migrations with the npm cli
    cd backend
    npm run typeorm-run

About

fullstack project with nuxtjs in the frontend and express + typescript in the backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published