Coder Social home page Coder Social logo

sotatek-chiendao23 / nodejs-express-sequelize Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jesielviana/nodejs-express-sequelize

0.0 0.0 0.0 392 KB

Exemplo de Projeto Node.js com Express, Sequelize e Postgres

Home Page: https://ifpi-curso-nodejs-api.herokuapp.com/

License: MIT License

JavaScript 100.00%

nodejs-express-sequelize's Introduction

Node.js project with Express, Sequelize, Jest and Postgres

by @jesielviana

Directory structure

src
  ├── app.js         app entry point
  ├── /routes        controller layer: api routes
  ├── /config        config settings
  ├── /services      service layer: business logic
  ├── /models        data access layer: database models	
test       
  ├── /unit          unit test suites
  ├── /integration   test api routes

Installation and execution

  1. Clone of this repository: git clone https://github.com/jesielviana/nodejs-express-sequelize.git;
  2. Enter the nodejs-express-sequelize folder: cd nodejs-express-sequelize;
  3. Run yarn to install dependencies: yarn;
  4. Config database credentials inside /src/config/database.js;
  5. Create database, run yarn sequelize db:create to create the database;
  6. Run yarn dev to start the server.

API

  • Sign-up: http://localhost:3000/api/auth/signup
  • Login: http://localhost:3000/api/auth/signin
  • Courses: http://localhost:3000/api/courses
  • Users: http://localhost:3000/api/users
  • Students: http://localhost:3000/api/students

References


Repository link of a frontend example that integrates with this API: https://github.com/jesielviana/frontend-ifpi-curso-nodejs

nodejs-express-sequelize's People

Contributors

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