Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Is a server that provides the postal codes of all cities of spain.

License

NotificationsYou must be signed in to change notification settings

OussamaAlouat/postal-codes-backend

Repository files navigation

SUMMARY

This project provides all postal codes of spain. It have mysql database with all the information, you only need to import it.The server have end-point's to get the information, you can read the tests to know how it works.

COMMANDS

npm run install

Use this command to install all dependencies.

npm run dev

This command start the server on development mode. So it will be start using nodemon. Sure that you have this dependency installed.

npm run build

This command builds the project sources.

npm run start

This command start the server on production mode. On this case it start using node js.

STEPS:

1) Install mysql on your computer. The version of this database is 8.0.14

2) Use MYSQLWorkbench to synchronize the database model.

3) The database model is /database/postal.mwb

4) Execute the sql scripts to insert all the data.

5) All the scripts are in /database/dump

6) Run npm install, to install all the dependencies

7) Run npm run start to start the server.

8) Use postman to test that server works well.

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp