Skip to content

kecoco16/Gimnasio-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gimnasio-Server

Backend service for the Gimnasio-Vue app.

Prerequisites

  • Install Node.js lts version (8.11.3) or current Version: (10.7.0)
  • Install Postgres 10

Installing

npm i

Getting Started

Database

Postgres offers a cli tool to create the database we need:

psql postgres
CREATE ROLE coco WITH LOGIN PASSWORD 'coco'; 
CREATE DATABASE gimnasio;
GRANT ALL PRIVILEGES ON DATABASE gimnasio TO coco;
\quit

If you want to change the name of any of these settings, you must change the database configuration in this file

Then:

npm run db:setup
npm run db:examples

API

npm start

Running the tests

npm test

Or:

Database

npm run db:test

API

npm run api:test

Database Diagram

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

RESTful API using node and express to connect with the FE https://github.com/kecoco16/Gimnasio-Vue

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published