Skip to content

vanlongnguyen/scooter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scooter

Pre-preparation

  1. brew install postgresql
  2. brew services start postgresql ==> Successfully started postgresql (label: homebrew.mxcl.postgresql)
  3. postgres=# CREATE ROLE beam WITH LOGIN PASSWORD 'password';
  4. Log in with new user: psql -d postgres -U beam
  5. Create Database: CREATE DATABASE scooters;
  6. Access to new DB: postgres=> \c scooters
  7. Create DB schema:

CREATE TABLE scooter_info ( id SERIAL PRIMARY KEY, lat VARCHAR(50), long VARCHAR(50), country VARCHAR(150), name VARCHAR(100) );

  1. Test your schema: scooters=> select * from scooter_info;

id | lat | long | country | name
----+-----------+------------+---------------+--------------------

If you see this. It works.

  1. Clone code from [email protected]:vanlongnguyen/scooter.git
  2. npm install
  3. npm start

Access to http://localhost:80/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published