A simple registration and log in API built using NodeJS and Postgres
This API has just two features used in buidling any application the involves User sign up and sign in. The API uses JSON Web Token (JWT) for authentication and to the an extent the API is properly validated
- Register (sign Up)
- Log in (sign In)
- NodeJS is a JavaScript runtime built on Chrome's V8 JavaScript engine
- Express JS A minimalist web framework
- Sequelize Sequelize is a promise-based ORM for Node.js v4 and up. It supports the dialects PostgreSQL, MySQL, SQLite and MSSQL and features solid transaction support, relations, read replication and more.
- PostgreSQL A powerful, open source object-relational database system.
- ESLint provides a pluggable linting utility for JavaScript.
- Mocha Mocha is a feature-rich JavaScript test framework running on NodeJS for testing Javascript applications.
- Install NodeJS and PostgreSQL on your machine
- Clone the repository by running
git clone https://github.com/codestaintin/UserAPI.git - Change to working directory to UserAPI
cd /UserAPI - Run
npm installto install all dependencies - It is advisable to install sequelize CLI globally to ease database migrations
npm install -g sequelize-cli - Create a
.envfile that conforms to the.env.Sampleprovided for your environment variables - Run
sequelize db:migratefor database migrations - Run
sequelizeto have access to all other sequelize commands, e.gsequelize db:migrate:undo:allis for undoing migrations - Run
npm startto start the application. - Run
npm testto run application tests.
- Medium A great and educating blog I learnt a lot from.
- StackOverflow My run to website in times of error and knowledge test.
- Github For making it easy for me to get access to my repositories anywhere, anytime. Thanks!!!!
- Scotch For all the awesome tutorials. Thanks!!!!